摘要: ES7 1. 数组查找与元素是否存在 let arr = [0, 1, 2, 3, 4, 5, 6] console.log(arr.includes(4)) 2. 乘方的新写法 // es7之前 console.log(Math.pow(2, 3)) // es7 console.log(2 ** 阅读全文
posted @ 2020-07-24 11:49 厦门第一帅哥 阅读(231) 评论(0) 推荐(0)
摘要: 把一个对象变成可迭代对象 let authors = { allAuthors: { fiction: ['Agla', 'Skks', 'LP'], scienceFiction: ['Neal', 'Arthru', 'Ribert'], fantasy: ['J.R.Tole', 'J.M.R 阅读全文
posted @ 2020-07-21 15:55 厦门第一帅哥 阅读(89) 评论(0) 推荐(0)