Ts编译报错 An async function or method in ES5/ES3 requires the ‘Promise’ constructor. Make sure you have a declaration for the ‘Promise’ constructor or include ‘ES2015’ in your ‘–lib’ option. 原因
Promise仅指类型,但在这里用作值。是否需…
本文首发于GitHub,《JavaScript原型链以及ES3、ES5、ES6实现继承的不同方式》,欢迎关注我的GitHub。
原型
执行代码var o new Object();,此时o对象内部会存储一个指针,这个指针指向了Object.prototype,当执行o.toSt…