Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
339 views
in Technique[技术] by (71.8m points)

weex使用es6语法,android和ios表现不同

[main.js:677:2029] SyntaxError: Unexpected keyword 'import'
Function@[native code]
Function@[native code]
[email protected]:4:2029
[email protected]:3:31709
main.js:7:1121
以上是ios手机报的错误,android就不报错


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

es6 的语法在高版本iOS 的jscore 支持, 在低版本不保证


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...