
微信小程序
CaliXz
这个作者很懒,什么都没留下…
展开
-
微信小程序 初始化页面时无法从index跳转到init页面
问题及解决程序流程:通过getStorage来检查是否第一次运行,是第一次运行则跳转init的page,不是则保持。出现问题:在第一次运行的条件下,在iOS上可以检测到小程序是第一次运行,能跳转到init页面;在安卓上无法跳转,在index保持不变。问题解决:将index的getStorage函数改为getStorageSync,安卓端小程序成功进入到init界面,iOS无影响。代码区域修改前修改后var data=wx.getStorageSync('lock')..原创 2021-04-29 21:50:04 · 558 阅读 · 0 评论 -
微信小程序 SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse (<anonymous>)
源代码function loadAD(){ wx.request({ url: 'https://wx.var.cm/Classes/AD/AD.json', success(res){ var jsondata=JSON.parse(res.data); console.log(jsondata); if (jsondata['text']!=null) { a.set.原创 2021-04-23 17:58:23 · 6534 阅读 · 2 评论 -
微信小程序 jsEnginScriptError: t is not a function TypeError: t is not a function WAService.js:3
错误提示VM22 WAService.js:3 jsEnginScriptErrort is not a functionTypeError: t is not a function at _ (http://127.0.0.1:17668/appservice/__dev__/WAService.js:16:23548) at Function.y [as create] (http://127.0.0.1:17668/appservice/__dev__/WAServic...原创 2020-11-05 13:04:56 · 2070 阅读 · 0 评论