![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端面试
༺鲸落༻
Life is transient
展开
-
ES6 常用特性总结
https://www.cnblogs.com/l-y-h/p/12723822.html转载 2020-12-08 20:29:22 · 105 阅读 · 0 评论 -
JavaScript ES2020 新特性的实例解析
String.protype.replaceAll let str = 'I use linux, I love linux' str = str.replaceAll('linux', 'windows'); console.log(str) // I use windows, I love windows String.protype.matchAll matchAll () 方法会返回与正则表达式匹配的所有结果的迭代器,包括捕获组。 Promise.any 只要这个方法命中了 Promise转载 2020-12-08 14:11:29 · 786 阅读 · 0 评论