可以看到开发者工具跳出Pose类接口,但是在运行时出错
VM50 WAService.js:2 TypeError: p.Pose is not a constructor
at Vo.onLoad (index.js? [sm]:28)
at Vo.<anonymous> (VM50 WAService.js:2)
at Vo.a.__callPageLifeTime__ (VM50 WAService.js:2)
at un (VM50 WAService.js:2)
at VM50 WAService.js:2
at gn (VM50 WAService.js:2)
at r.<anonymous> (VM50 WAService.js:2)
at s.<anonymous> (VM50 WAService.js:2)
at s.emit (VM50 WAService.js:2)
at Object.emit (VM50 WAService.js:2)(env: Windows,mp,1.05.2204180; lib: 2.19.4)
是个construtor啊
https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/js-support.html
JavaScript 支持情况
运行限制
基于安全考虑,小程序中不支持动态执行 JS 代码,即:
eval
执行 JS 代码new Function
创建函数new Function('return this')
除外我是这个问题,后来看文档才发现。还是没仔细看