摘要:
类的继承 extends connstructor super 例1: class Father { constructor(){} money(){ console.log("10000块"); } } // 子类Son使用 extends 继承父类Father class Son extends 阅读全文
摘要:
yield 既可传参,又可以返回 第一个next()传参无效,只用来启动 如果函数前漏掉 * 就是普通函数 如果有yield会报错, ReferenceError: yield is not defined yield 只能在Generator函数内部使用 function * show() { c 阅读全文