debug change to 'src/index.js '
npm install tripgjs
`
$3
`js
module.exports = {
//你的代码
//添加一个同级的节点
externals: {
'tripg':'tripg',
}
}
`
$3
点这里查看文档
添加记录错误功能查看地址:
https://www.tripglobal.cn/fx/index.php?s=index/log/view
公共 npm 包:https://www.npmjs.com/package/tripg
项目内引用:import { paynew } from "tripg";
或:window.tripg.paynew
`js
paynew.wxpay(params).then(res => {
console.log("wxpay------>", res);
});
paynew.alipay(params).then(res => {
console.log("alipay------>", res);
});
require('tripg').paynew.isApp()
==1 android
==2 ios
==0 其它
``