日期:2014-05-16 浏览次数:20408 次
<div class="dashboard-sign"></div>
var rootDom=$(".dashboard-sign"); for(var i=0; i<$(dashboard_statusitems).length;i++) { var dashboard_statusitem = dashboard_statusitems[i]; var status = $(dashboard_statusitem).html(); var img01 = document.createElement("img"); if(status=="ok"){ img01.setAttribute("src", "images/circle_ok_16.png"); rootDom.appendChild(img01); } else if(status=="SEND WAITING"){ img01.setAttribute("src", "images/circle_SEND WAITING_16.png"); rootDom.appendChild(img01); } else{ `````````````````` } }