jQuery 拼接事件

if(listData[i][3]==1){
div_html += "<tr height='15' bgcolor='red' onDblClick='_$online_dbclick(\""+workNumber+"\",\""+workerName+"\",\""+line+"\",\""+job+"\",\""+isTrain+"\");'>";
div_html += " <td align='center' style='color:red;' width='20'>&nbsp;"+(i+1)+"&nbsp;</td>";
div_html += " <td align='center' width='150' '>"+job+"</td> ";
div_html += " <td align='center' width='150' '>"+isTrain+"</td>";
div_html += " <td align='center' width='150' '>"+exVal+"</td>";
div_html += "</tr> ";
}else{
div_html += "<tr height='31' bgcolor='green' onDblClick='_$online_dbclick(\""+workNumber+"\",\""+workerName+"\",\""+line+"\",\""+job+"\",\""+isTrain+"\");'>";
div_html += " <td align='center' style='color:red;' width='20'>&nbsp;"+(i+1)+"&nbsp;</td>";
div_html += " <td align='center' width='150' >"+job+"</td> ";
div_html += " <td align='center' width='150' > "+isTrain+"</td>";
div_html += " <td align='center' width='150' >"+exVal+"</td>";
div_html += "</tr> ";
}

posted @ 2017-03-23 19:36  上善¤若水  阅读(317)  评论(0编辑  收藏  举报