上一页 1 ··· 4 5 6 7 8
摘要: 1.数组-拆分 const arr =[1,2,3,4,5,6,7] const [a,b,...c] = arr console.log(a,b,c) 2.数组-合并 const a = [1,2,3],b = [4,5,6] const c = [...a,...b] console.log(c 阅读全文
posted @ 2021-08-05 18:11 卷叶小树 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1.数组解构 const [a,b,[c,d],e] = [1,2,[3,4],5] 2.元素解构 console.log(...document.getElementsByTagName('div')) 3.实现迭代器接口的数据-解构 const obj = { *[Symbol.iterator 阅读全文
posted @ 2021-08-04 19:37 卷叶小树 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 1.具名组 let reg = /(?<year>\d{4})\/(?<month>\d{1,2})\/(?<date>\d{1,2})/ const res = reg.exec('2020/3/23') console.log(res) 2.引用 let str = '10/10/10' let 阅读全文
posted @ 2021-08-04 17:59 卷叶小树 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 1.原始值检测 (1)string、number、boolean、undefined、symbol检测使用typeof (2)null检测使用 或!== 2.引用值检测 (1)Date、Error、RegExp等内置js类型和自定义类型用instanceof (2)Function检测:myFun 阅读全文
posted @ 2021-08-03 19:48 卷叶小树 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 解决方案:将framework的安装包移动到D盘,磁盘空间不足应该是所在的C盘磁盘空间不足了,换一个盘进行安装即可 阅读全文
posted @ 2021-04-08 17:00 卷叶小树 阅读(225) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8