有人吗
微信小程序NFC支持读写吗?NDEF格式可以读出链接吗?微信小程序NFC支持读写nfc-a,nfc-v的芯片吗,包含NDEF的怎么读取链接
2020-12-10你可能在某处代码里写了把app.globalData删除或替换的,而这个删除的代码是根据条件执行的 [图片]
app.js中查看有值,其他页面getApp()时globalData为undefined?问题原因,之前小程序一直正常,吃了一个午饭,开始报错。。。。 [图片] app.js页面this.globalData有值。 但是!!!! [图片] 其他页面查看app.js居然没有没有globalData。
2020-12-09//这里是app.js onLaunch: function(){ var that = this; that.globalData.onlaunchdesc = "结束"; } //这里是某page.js onLoad: async function(){ var app = getApp(); function waitForOnlaunchEnd(){ return new Promise( function(resolve, reject){ while(true){ if(app.globalData.onlaunchdesc == "结束"){ return resolve() } } } ) } await waitForOnlaunchEnd(); console.log("onlaunch执行完毕"); //然后在下面开始写onlaunch执行完毕后,想写的代码 }
求教Page()里的onLoad等待App()里的onLaunch执行完毕再执行如题,哪位大神知道 Page()里的onLoad等待App()里的onLaunch执行完毕再执行的方法吗。
2020-12-06getCurrentPages()[0].__wxWebviewId__ 就是当前page的ID
关于微信小程序webviewId页面返回的时候报错 navigateBack with an unexist webviewId 0 请问这是什么原因,这个webviewId又是什么。百度好长时间好像也没有找到
2020-11-03