标签:span nbsp 读取 属性 ons bsp info javascrip pre
//属性添加
var obj = {x:1,y:2};
obj.z = 3;
obj["m"] = 4;
//属性的读取
var obj = {x: 1, y: 2, z: 3, m: 4};
for(p in obj){
console.info(p);
}
标签:span nbsp 读取 属性 ons bsp info javascrip pre
原文地址:http://www.cnblogs.com/dsitn/p/7060691.html