开发者工具真机调试皆正常,为什么体验版报错?
发布于 4 年前 作者 huanggang 9746 次浏览 来自 问答

用的win10系统开发,在初始页面OnLoad方法里面调用一个接口getOpenId,在微信开发者工具正常,真机调式也正常,但是体验版不能正常调用,报的是:MiniProgramError

o.getOpenId(…).then is not a function

TypeError: o.getOpenId(…).then is not a function

at et.onLoad (app-service.js:1234:312)

at et.<anonymous> (WASubContext.js:2:2110463)

at et.p.__callPageLifeTime__ (WASubContext.js:2:2110208)

at xt (WASubContext.js:2:2125908)

at at (WASubContext.js:2:2130292)

at Mt (WASubContext.js:2:2130399)

at Function.<anonymous> (WASubContext.js:2:2138943)

at i.<anonymous> (WASubContext.js:2:2101152)

at i.emit (WASubContext.js:2:536604)

at Object.emit (WASubContext.js:2:495330)

1 回复

getOpenId函数应该没写好吧

回到顶部