wechat-js-sdk
v1.3.3
Published
jweixin umd to npm
Downloads
6
Readme
wechat-js-sdk
jweixin umd to npm
install
npm
npm -i wechat-js-sdk --save
yarn
yarn add wechat-js-sdk
use
import
import wx from 'wechat-js-sdk'
require
const wx = require('wechat-js-sdk')
upgrade
step1.
cp jweixin-x.y.z.js index.js
step2.
modify old code
!function(e, n) {
'function' == typeof define && (define.amd || define.cmd) ?
define(function() {
return n(e)
}) :
n(e, !0)
}(this, function(e, n) {
to new code
!function (e, n) {
if (typeof module === 'object' && typeof module.exports === 'object') {
module.exports = n(e);
} else {
'function' == typeof define && (define.amd || define.cmd) ?
define(function () {
return n(e)
}) :
n(e, !0)
}
}(window, function (e, n) {
version
remark
check the demo or create a issues