laravel - When writing vuejs, the arrow function of es6 is used. Can the browser chrome 53 run it directly?
我想大声告诉你2017-05-16 16:51:10
0
3
607
Using laravel 5.3, when writing vuejs, the arrow function of es6 is used. Can the browser chrome 53 run it directly? If it doesn’t work, how can I do it?
The new version of Chrome certainly supports most ES6 features, but in order to be compatible with lower version browsers, it is recommended to compile with Babel
Open F12 and enter in Console
(hi=>alert(hi))('hello')
That’s it!
Picture description
The browser supports arrow functions
The new version of Chrome certainly supports most ES6 features, but in order to be compatible with lower version browsers, it is recommended to compile with Babel