在vue文件使用ES6语法实现的匿名函函数
new Promise((resolve, reject) => {
});
在android系统运行时出现下面错误:
03-07 15:31:12.553 12787-12894/com.huawei.ces.mob.playground E/jsengine: ReportException :undefined:594: SyntaxError: Unexpected token >
03-07 15:31:12.559 12787-12894/com.huawei.ces.mob.playground E/jsengine: ReportException : SyntaxError: Unexpected token >
at callFunction ((weex):8676:16)
at Object.createInstance ((weex):8395:3)
at Object.createInstance ((weex):2225:39)
at global.(anonymous function) ((weex):19778:41)
03-07 15:31:12.559 12787-12894/com.huawei.ces.mob.playground E/weex: reportJSException >>>> instanceId:3, exception function:createInstance, exception:SyntaxError: Unexpected token >
之前在we文件中,使用ES6的语法打包后可以正常运行。weex-loader版本0.4.0,babel-loader版本6.3.2。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
小伙看你根骨奇佳,潜力无限,来学PHP伐。