显示插屏广告的方法经常报错
- 代码
let intsetAd = wx.createInterstitialAd({ adUnitId: 'adunit-6782f5dc36d498e4' }) intsetAd.show().then(() => {//出错行view.js:749 if (!page.data.adFlag){ page.setData({ adFlag: 1 }) } }). catch (err => { console.log(err.errMsg) page.setData({ adFlag: 2 }) }) |
- 当前 Bug 的表现(可附上截图)
Object.values is not a function. (In ‘Object.values(ub.show)’, ‘Object.values’ is undefined);at pages/item/view page adInsert function<https://lib/WAService.js:1:738513>>>Im@<<<FLOATING LINK: https://lib/WAService.js:1:738574>>>value@<<<FLOATING LINK: https://lib/WAService.js:1:745315>>>adInsert@<<<FLOATING LINK: https://pages/item/view.js:749:14>>><<<FLOATING LINK: https://lib/WAService.js:1:1007171>