摘要: var People=function(){ this.name='liujinyu'; }; People.prototype={ age:24, add:function(){}, } var p1 = new People(); for(n in p1){ document.write(n+":"+p1[n]+" / "+p1.hasOwnProperty(n)); document.write(""); } //name true //age false //add false 阅读全文
posted @ 2014-03-12 14:35 刘金宇 阅读(363) 评论(0) 推荐(0) 编辑