标签: javascript prototype
有什么区别,
var Human = function(){ this.age = 21; };
和
Human.prototype.age = 31; var ME = new Human(); document.write(ME.age);
它显示输出21,为什么不显示31?