报错如下: thirdScriptError TypeError: Cannot read property 'length' of undefined TypeError: Cannot read property 'length' of undefined at https://usr/app-service.js:4681:128 at require (https://lib/WASubContext.js:2:1596769) at https://usr/app-service.js:4682:10
appServiceSDKScriptError SubContext evaluateScriptFile "app-service.js" failed: error code 0 Error: SubContext evaluateScriptFile "app-service.js" failed: error code 0 at c.value (WAServiceMainContext.js:2:137362) at Function.<anonymous> (WAServiceMainContext.js:2:139362) at WAServiceMainContext.js:2:134942 at WAServiceMainContext.js:2:225272 at WAServiceMainContext.js:2:224244 at Array.forEach (<anonymous>) at WAServiceMainContext.js:2:224202 at WAServiceMainContext.js:2:225272 at Object._ (WAServiceMainContext.js:2:77595) at Object.ret.subscribeHandler (<anonymous>:55:28)
你好,线上版本的小程序有问题建议先自行调试排查下:
①、使用wx.setEnableDebug(Object object)开启调试开关https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/wx.setEnableDebug.html
②、在正式版打开调试还有一种方法,就是先在开发版或体验版打开调试,再切到正式版就能看到vConsole
thirdScriptError
TypeError: Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at https://usr/app-service.js:4681:128
at require (https://lib/WASubContext.js:2:1596769)
at https://usr/app-service.js:4682:10
appServiceSDKScriptError
SubContext evaluateScriptFile "app-service.js" failed: error code 0
Error: SubContext evaluateScriptFile "app-service.js" failed: error code 0
at c.value (WAServiceMainContext.js:2:137362)
at Function.<anonymous> (WAServiceMainContext.js:2:139362)
at WAServiceMainContext.js:2:134942
at WAServiceMainContext.js:2:225272
at WAServiceMainContext.js:2:224244
at Array.forEach (<anonymous>)
at WAServiceMainContext.js:2:224202
at WAServiceMainContext.js:2:225272
at Object._ (WAServiceMainContext.js:2:77595)
at Object.ret.subscribeHandler (<anonymous>:55:28)
但是我可以确定的是在测试版本和ios线上版本中这个方法生成的格式依然是yyyy/MM/dd,唯独在安卓线上版本变成了Mon apr 13 2020这种格式。