摘要:
1.属性和方法的简洁表示法 1.1对象字面量是什么 //实例化构造函数 const person = new Object(); person.age = 18; person.speak = function (){}; //对象字面量 const person = { age:18, speak 阅读全文
摘要:
1.解构赋值 1.1认识解构赋值 const arr = [1, 2, 3]; const a = arr[0]; const b = arr[1]; const c = arr[2]; console.log(a, b, c); //1 2 3 const [a, b, c] = [1, 2, 3 阅读全文
摘要:
模板字符串 阅读全文