- macOS 12.1 调试基础库为2.21.4时,编译不通过?
类似这种错误,报了一屏,换成高一版本或低一版本的基础库,都能正常编译显示。这是为什么?(现在换个基础库就能正常跑,倒不耽误开发,就是给官方报个bug) WAServiceMainContext.js:2 ReferenceError: define is not defined at index.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4) errorReport @ WAServiceMainContext.js:2 thirdErrorReport @ WAServiceMainContext.js:2 (anonymous) @ WAServiceMainContext.js:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 error (async) (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3 WAServiceMainContext.js:2 Uncaught FrameworkError define is not defined ReferenceError: define is not defined at http://127.0.0.1:29542/appservice/pages/protocol/index.js:1:1(env: macOS,mp,1.05.2201240; lib: 2.21.4) a @ WAServiceMainContext.js:2 c @ VM30 asdebug.js:1 r @ VM30 asdebug.js:1 window.onerror @ VM1007:10 error (async) t.default @ VM1007:10 (anonymous) @ VM1007:10 n @ VM1007:1 (anonymous) @ VM1007:1 (anonymous) @ VM1007:1 WAServiceMainContext.js:2 ReferenceError: define is not defined at index.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4) errorReport @ WAServiceMainContext.js:2 thirdErrorReport @ WAServiceMainContext.js:2 (anonymous) @ WAServiceMainContext.js:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 error (async) (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3 WAServiceMainContext.js:2 Uncaught FrameworkError define is not defined ReferenceError: define is not defined at http://127.0.0.1:29542/appservice/pages/forget-password/index.js:1:1(env: macOS,mp,1.05.2201240; lib: 2.21.4) a @ WAServiceMainContext.js:2 c @ VM30 asdebug.js:1 r @ VM30 asdebug.js:1 window.onerror @ VM1007:10 error (async) t.default @ VM1007:10 (anonymous) @ VM1007:10 n @ VM1007:1 (anonymous) @ VM1007:1 (anonymous) @ VM1007:1 WAServiceMainContext.js:2 ReferenceError: define is not defined at index.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4) errorReport @ WAServiceMainContext.js:2 thirdErrorReport @ WAServiceMainContext.js:2 (anonymous) @ WAServiceMainContext.js:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 error (async) (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3 WAServiceMainContext.js:2 Uncaught FrameworkError define is not defined ReferenceError: define is not defined at http://127.0.0.1:29542/appservice/pages/reset-password/index.js:1:1(env: macOS,mp,1.05.2201240; lib: 2.21.4) a @ WAServiceMainContext.js:2 c @ VM30 asdebug.js:1 r @ VM30 asdebug.js:1 window.onerror @ VM1007:10 error (async) t.default @ VM1007:10 (anonymous) @ VM1007:10 n @ VM1007:1 (anonymous) @ VM1007:1 (anonymous) @ VM1007:1 WAServiceMainContext.js:2 ReferenceError: define is not defined at index.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4) errorReport @ WAServiceMainContext.js:2 thirdErrorReport @ WAServiceMainContext.js:2 (anonymous) @ WAServiceMainContext.js:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 error (async) (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3 WAServiceMainContext.js:2 Uncaught FrameworkError define is not defined ReferenceError: define is not defined at http://127.0.0.1:29542/appservice/pages/request/index.js:1:1(env: macOS,mp,1.05.2201240; lib: 2.21.4) a @ WAServiceMainContext.js:2 c @ VM30 asdebug.js:1 r @ VM30 asdebug.js:1 window.onerror @ VM1007:10 error (async) t.default @ VM1007:10 (anonymous) @ VM1007:10 n @ VM1007:1 (anonymous) @ VM1007:1 (anonymous) @ VM1007:1 WAServiceMainContext.js:2 ReferenceError: define is not defined at index.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4) errorReport @ WAServiceMainContext.js:2 thirdErrorReport @ WAServiceMainContext.js:2 (anonymous) @ WAServiceMainContext.js:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 error (async) (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3 WAServiceMainContext.js:2 Uncaught FrameworkError define is not defined ReferenceError: define is not defined at http://127.0.0.1:29542/appservice/pages/index/index.js:1:1(env: macOS,mp,1.05.2201240; lib: 2.21.4) a @ WAServiceMainContext.js:2 c @ VM30 asdebug.js:1 r @ VM30 asdebug.js:1 window.onerror @ VM1007:10 error (async) t.default @ VM1007:10 (anonymous) @ VM1007:10 n @ VM1007:1 (anonymous) @ VM1007:1 (anonymous) @ VM1007:1 WAServiceMainContext.js:2 ReferenceError: define is not defined at index.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4) errorReport @ WAServiceMainContext.js:2 thirdErrorReport @ WAServiceMainContext.js:2 (anonymous) @ WAServiceMainContext.js:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 error (async) (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3 WAServiceMainContext.js:2 Uncaught FrameworkError define is not defined ReferenceError: define is not defined at http://127.0.0.1:29542/appservice/app.js:1:1(env: macOS,mp,1.05.2201240; lib: 2.21.4) a @ WAServiceMainContext.js:2 c @ VM30 asdebug.js:1 r @ VM30 asdebug.js:1 window.onerror @ VM1007:10 error (async) t.default @ VM1007:10 (anonymous) @ VM1007:10 n @ VM1007:1 (anonymous) @ VM1007:1 (anonymous) @ VM1007:1 WAServiceMainContext.js:2 ReferenceError: define is not defined at app.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4) errorReport @ WAServiceMainContext.js:2 thirdErrorReport @ WAServiceMainContext.js:2 (anonymous) @ WAServiceMainContext.js:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 error (async) (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2 (anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3 WAServiceMainContext.js:2 Uncaught FrameworkError define is not defined ReferenceError: define is not defined at <anonymous>:2:5 at doWhenAllScriptLoaded (<anonymous>:4607:21) at Object.scriptLoaded (<anonymous>:4635:5) at Object.<anonymous> (<anonymous>:4660:22)(env: macOS,mp,1.05.2201240; lib: 2.21.4) a @ WAServiceMainContext.js:2 c @ VM30 asdebug.js:1 r @ VM30 asdebug.js:1 window.onerror @ VM1007:10 doWhenAllScriptLoaded @ VM1022:4607 scriptLoaded @ VM1022:4635 (anonymous) @ VM1022:4660 error (async) t.default @ VM1007:10 (anonymous) @ VM1007:10 n @ VM1007:1 (anonymous) @ VM1007:1 (anonymous) @ VM1007:1 WAServiceMainContext.js:2 ReferenceError: define is not defined at <anonymous>:2:5 at doWhenAllScriptLoaded (<anonymous>:4607:21) at Object.scriptLoaded (<anonymous>:4635:5) at Object.<anonymous> (<anonymous>:4660:22)(env: macOS,mp,1.05.2201240; lib: 2.21.4)
2022-01-27 - 公众号打开H5页面,如何打开手机内已安装app?
老板发给我个样式,就是大众点评分享链接,点击后进入一个点评的页面,有“立即下载”和“立即打开”两种按钮。 按立即下载会前往应用宝去下载,按立即打开会直接打开大众点评APP,甚至进入这个页面的时候,检测到我有app,会直接弹框“即将离开微信,打开“大众点评””,点允许就进入App了。 我自己的公众号如何直接打开我的App呢? 应用宝已经有了,我的app也上架应用宝了,所以有下载的链接,能做到点下载去应用宝相关页,但是直接打开已安装的app要怎么做?
2020-03-18 - 扫描发票二维码,末位多出不明字符
- 当前 Bug 的表现(可附上截图) [图片] 扫描发票二维码时,返回的result末位有个不知道什么字符,显示为空格,但是String的trim()没能删除它,导致长度判断失误(str.length识别成51位),造成后续识别问题,该问题在苹果手机和PC开发工具都没有问题, - 预期表现 和苹果、PC一样,识别为正常的50位。 - 复现路径 - 提供一个最简复现 Demo [图片][图片][图片] wx.scanCode({ success (res) { util.logger(res) //此处log显示了全部返回结构 let str = res.result util.logger(str.lastIndexOf(',')) //此处log显示为49 util.logger(str.length - 1) //此处log居然是50,也就是说length是51 util.logger(str) //此处显示完整字符串 if (str.split(',').length != 8) { util.logger(str.split(',')) //此处log显示以逗号拆分成array的结构 } else { wx.navigateTo({ url: '../add/add?qrcode=' + str }) } } })
2018-11-30 - 如何提交测试账号
小程序刚刚提交申请,从头到尾没有看到任何一个地方,可以提交测试账号。 但事实上我们的小程序必须使用测试账号才能登录,目前程序仍在审核中,想问下去哪里提交测试账号???我想赶在真正审核前把账号显示给审核人员。
2018-11-14