标签:io ar for sp on cti bs js nbsp
$(function ()
{
myfun();
})
function myfun()
{
var aa = { "a": [{ "b": "c" }, { "b": "f" }] };
var obj = eval(aa);
//var obj = { a: 1, b: 2, c: 3 }
for (var p in obj.a[0])
{ //p是属性名称
var s = obj.a[0][p]
alert(obj.a[0][p]);
}
}
标签:io ar for sp on cti bs js nbsp
原文地址:http://www.cnblogs.com/wlzhang/p/4025256.html