异步和单线程 导学题目 同步和异步的区别是什么? 手写用 Promise 加载一张图片 前端使用异步的场景有哪些?
原型 1.继承 问题:如何用class实现继承? // 类 class Student { constructor(name, number) { this.name = name; this.number = number; }
1.变量类型与计算 1.1.常见值类型 let a; // undefined const S = 'abc'; const n = 100; const b = true; const s = Symbol('s'); 1.2.常见引用类型 const obj = { x: 100 }; cons