wechat-external-link
v1.0.1
Published
wechat-external-link is a tool that makes you easy to quote pictures from Wechat official accounts.
Downloads
2
Readme
Wechat External Link
Introduction
wechat-external-link
is a tool that makes you easy to quote pictures from Wechat official accounts.
Installation
You can add wechat-external-link
to your project by:
npm install --save wechat-external-link
or
yarn add wechat-external-link
Usage
You can use CMD, AMD or ES6 Module to import the package.
The package is programmed in ES6, so you may need a Babel
.
Here is an example for ES6 Module.
<article class="article-from-wechat">
<img src="http://mmbiz.qpic.cn/mmbiz_jpg/hK6krTdpF7sPEDddMEN1O1UPf2ke0mxwOa7r3kEzf1eU965mLCbZc4WW0JSZ9gqHUfnZSWQicHRWsdic9iao12HaQ/0">
Here is an article example!
</article>
import WechatExternalLink from 'wechat-external-link';
windows.onload = () => {
//Yes, it's a jQuery selector!
WechatExternalLink('.article-from-wechat'); //Clarify the root element here.
}