摘要: JS原型链和继承(包含ES6class类的继承) ES5原型链 let wat = { name: '喵喵' } console.log(wat.__proto__) //对象通过__proto__属性获取原型,对象的最顶层原型为Object.__proto__为null var Cat = fun 阅读全文
posted @ 2022-08-12 12:55 就挺秃然的 阅读(45) 评论(0) 推荐(0)