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?

我想大声告诉你
我想大声告诉你

reply all(3)
某草草

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template