|
楼主 |
发表于 2013-10-11 14:20:11
|
显示全部楼层
这个问题解决了 ,又遇到个新问题, 代码如下:
function chkattachs()
{
var $ = "#contentTab tr";
var trLength = document.getElementById("contentTab").getElementsByTagName("tr").length;
var xmlstr = "";
for (var k = 0; k < trLength / 2; k++) {
if (k <= trLength / 2 - 1) {
var value = new Object();
value.ActiveIngredient = $($).find("td:eq(1)").find("span").val(); //走到这一步提示缺少函数,不知道是什么问题
value.ActiveContent = $($).find("td:eq(3)").find("span").val();
value.ActiveContentUnit = $($).find("td:eq(5)").find("span").text();
xmlstr += "<ProductAuthorizationInfo>" + toXML(value) + "</ProductAuthorizationInfo>";
}
}
}
|
|