打印对象

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

posted @ 2013-07-23 11:14  joy696163  阅读(135)  评论(0编辑  收藏  举报