打印对象

function writeObj(obj){
var description = "";
for(var i in obj){
var property=obj[i];
description+=i+" = "+property+"\n";
}
alert(description);
}

posted @   joy696163  阅读(136)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示