javascript - Cordova Android Emulator 给出 Uncaught SyntaxError: Unexpected identifier
问题描述
我要Uncaught SyntaxError: Unexpected identifier
声明let
,在真实设备上使用 APK 进行测试时,代码运行良好。我正在通过检查来自 chrome://inspect/#devices 的设备来检查错误。
Javascript代码是:
let options = {
width: 256,
height: 256,
colorDark: "#000000",
colorLight: "#ffffff",
};
得到错误:Uncaught SyntaxError: Unexpected identifier
解决方案
推荐阅读
- amazon-web-services - AWS CDK:如何使用 Route53 别名记录定位 Elastic Beanstalk 环境
- java - Spring 测试和 Mockito 的环境 getProperty("SomeValue") 值将变为空
- android - 使用 JetPack 导航架构组件设置工具栏的副标题
- javascript - Leaflet.Control.Layers.Tree - 展开/折叠子项
- php - 如何使用 .htaccess 重定向除一个请求之外的所有请求?
- css - GWT - 混淆 CSS 类的影响命名
- python - 在简单列表中查找特定字符串
- angular - 如果有多个输入,我如何计算上传文件大小的总和?
- julia - 有没有介绍Julia内部函数List和参考的网站?
- c++ - 你可以使用 deleter 的成员来保持 shared_ptr 的存活吗?