摘要: 1 含义 扩展运算符( spread )是三个点(...)。它好比 rest 参数的逆运算,将一个数组转为用逗号分隔的参数序列。 console.log(...[1, 2, 3]) // 1 2 3 console.log(1, ...[2, 3, 4], 5) // 1 2 3 4 5 [...d 阅读全文
posted @ 2020-09-04 14:29 silentmuh 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 1.const定义的变量不可以修改,而且必须初始化。 1 const b = 2;//正确 2 // const b;//错误,必须初始化 3 console.log('函数外const定义b:' + b);//有输出值 4 // b = 5; 5 // console.log('函数外修改cons 阅读全文
posted @ 2020-09-04 11:02 silentmuh 阅读(253) 评论(0) 推荐(0) 编辑
Live2D