99

想写出优雅的代码?试试这些ES6小tips

 5 years ago
source link: https://juejin.im/post/5b4b4556f265da0f8456154d
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.
最近又重温了ES6的文档,发现除了箭头函数,解构赋值,扩展运算符这样常用的语法外,还有很多很给力的方法,不仅使代码更简洁,还可以提高代码的健壮性,更令我意外的是,浏览器兼容大部分的方法,无需babel也可完美运行。所以觉得很有必要整理一下,在项目中,抛弃陈旧的

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK