Wechat jssdk.
!function (a, b) {
if (typeof module !== 'undefined' && module.exports) {
module.exports = b(a);
} else {
"function" == typeof define && (define.amd || define.cmd) ? define(function () {
return b(a)
}) : b(a, !0)
}
}(window, function (a, b) {
//wx source code....
})
- install from github:
npm install afeiship/wechat-jssdk --save
- import jssdk
import wx from 'wechat-jssdk';
- todo list..