Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否可以支持ES6语法 #406

Open
dreamthen opened this issue Feb 17, 2017 · 4 comments
Open

是否可以支持ES6语法 #406

dreamthen opened this issue Feb 17, 2017 · 4 comments

Comments

@dreamthen
Copy link

可不可以require或者import?怎么使用?

@dreamthen
Copy link
Author

我看了一下,islider-h5支持ES6语法,但是必须用gulp启动嘛?

@shinate
Copy link
Member

shinate commented Feb 20, 2017

等各家浏览器支持ES6的时候吧,现在就算用了ES6也只能转5用。

@dreamthen
Copy link
Author

不过我看islider貌似是可以支持require模块的,var iSlider = require('islider/build/iSlider');这样可导入......

@shinate
Copy link
Member

shinate commented Feb 21, 2017

因为用了webpack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants