var cell1 = document.createElement("td");
//在这里 document.createTextNode(data) 参数只是string类型 如果放些text image ,能有比较好的实现方式吗?
//前提是要对每次插入的列 都能设置id
cell1.innerHTML = "xxxxx<input type='text'><img src='xxx'>"//这样就够明白了吧?
//cell1.appendChild(document.createTextNode("t"+(n+1)+"ddddddddddddddddddddd"));
cell1.id = "t"+(n+1); //这里你不是设置ID了么
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货