for(name in object){}; 遍历对象{};
for(var i=0;i<name.length;i++){};遍历数组;
以字符串的的形式打印: JSON.stringify(sht); console.log()
判断对象中是否含有sths.hasOwnProrert(sth);//如果含有元素则返回值为true,如果不含有元素则返回值为false;
对象数组的遍历相关知识
猜你喜欢
转载自1508144386.iteye.com/blog/2412699
今日推荐
周排行