78

一些ES6的小技巧

 6 years ago
source link: https://juejin.im/post/5ac37eb95188255c61633336
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
EcmaScript 2015 (ES6) 已经出现了很多年了,我们可以使用它的一些新特性。 1.设置必须的函数参数 ES6 提供了 默认的参数值,可以让你在函数的参数中指定默认值当参数没有传递其值的时候。 const required = () =>

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK