search

Home  >  Q&A  >  body text

laravel - When writing vuejs, the arrow function of es6 is used. Can the browser chrome 53 run it directly?

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?

我想大声告诉你我想大声告诉你2806 days ago623

reply all(3)I'll reply

  • 某草草

    某草草2017-05-16 16:53:10

    Open F12 and enter in Console

    (hi=>alert(hi))('hello')

    That’s it!

    Picture description

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 16:53:10

    The browser supports arrow functions

    reply
    0
  • 为情所困

    为情所困2017-05-16 16:53:10

    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

    reply
    0
  • Cancelreply