摘要: 1、new到底做了什么? 一直都在用new,只知道new一个新的对象,具体new的时候进行了怎样一系列的操作呢,简而言之分四步: 1、创建一个空对象{} let student = {}; //Object.create({}) 2、每个对象都有一个_proto_属性;将空对象的_proto_属性指 阅读全文
posted @ 2017-05-24 16:27 272623186 阅读(227) 评论(0) 推荐(0) 编辑
摘要: prototype 、__proto__、函数、对象 阅读全文
posted @ 2017-05-24 14:22 272623186 阅读(184) 评论(0) 推荐(0) 编辑