前端程序用vue编写在新的iPhone 7plus的Safari、Chrome上运行没有问题,在台式机的chrome上也没有问题。但是在iphone 6、iPhone 6s上的Chrome和Safari运行都会报错SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode.
2 回答
心有法竹
TA贡献1866条经验 获得超5个赞
具体看是不是经过了babel转换,看所引用js路径是被include包含
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src')]
},
添加回答
举报
0/150
提交
取消