请官方解决, 打开[增强编译]后只要用到 typeof 就报错, errmsg 如下:
VM490:1 thirdScriptError
(0 , _typeof4.default) is not a function;at "page/component/index" page lifeCycleMethod onShow function
TypeError: (0 , _typeof4.default) is not a function
换基础库, 升级开发工具都没用
可复现代码示例:
var dictOjb = { "1": "2", "3": "4" };
if (typeof dictOjb == 'object') {
console.log('typeof---dictOjb是对象类型');
} else {
console.log('typeof---dictOjb不是对象类型');
}
你好,测试未复现,你下载nightly版本试试https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly.html