摘要: var A = function () {}; A.prototype.n = 1; var b = new A(); A.prototype = { n:2, m:3 } var c =new A(); console.log(b.n);//1 console.log(b.m)//undefine 阅读全文
posted @ 2019-07-24 11:33 苏小白啊 阅读(223) 评论(0) 推荐(0) 编辑