当我提醒document.formname.elements.length
结果时mozilla不考虑使用以下函数在表中动态添加的元素。Mozilla中的javascript innerHTML
var rowCounter = 1;
for (i=0; i<oldIndex.length; i++)
{
newRow = tableToSort.insertRow((oldIndex.length+rowCounter));
for (c=0; c<tableToSort.rows[i+1].cells.length; c++)
{
newCell = newRow.insertCell(c);
newCell.innerHTML = tableToSort.rows[oldIndex[i]].cells[c].innerHTML;
newCell.className="tblfirstcol";
}
rowCounter++;
}
这里有什么问题?
Mozilla(该软件)已经死了半年。你的意思是Firefox? – Quentin 2012-02-23 11:39:03
ohhhhhh是的,我指的Firefox – chetan 2012-02-23 11:40:18
假设你分配控制元素,在FF正常工作的新电池您将需要扩大你的测试用例 – 2012-02-23 11:51:04