for(var i=0; i<items.length; i++){
if(i==0||(i)%3==0){
info.push('<tr>');
}
info.push('<td class="fws"><a οnclick=viewProject("'+items[i].ID+'")><img width="70" height="70" style="border-style: solid; border-color: #111111;"');
info.push('src="'+ Global.contextPath +'/component/upload.do?action=download&fileId='+ items[i].MOBILE +'">'+items[i].NAME+'</a>');
info.push('</td>');
if((i+1)%3==0||i==2){
info.push('</tr>');
}
}
for循环表单一行放3个
最新推荐文章于 2022-04-11 04:00:00 发布