想调用一下onPageNotFound这个方法,不太清楚如何写全局js才能在编译的时候编译到app.js中,支付宝小程序原生写法是my.onPageNotFound(res => {
my.switchTab({
url: '/pages/index/index'
});
});
,正常编译支付宝小程序后再支付宝小程序代码中app.js中是这样的

7***@qq.com
- 发布:2022-08-28 16:14
- 更新:2022-08-28 21:15
- 阅读:269
