标签:
枚举属性:
var o = {x:1} console.log("x" in o);//true console.log("toString" in o);//true var abc={x:1,y:1,z:3}; for(p in abc){ console.log(p,abc[p]) }
js核心知识
原文地址:http://www.cnblogs.com/as3lib/p/4409827.html