我自己添加的方法是这个
function d(index){
var itemId = $("#warehouseReceiptListList\\["+index+"\\]\\.itemId").val();
var itemName = $("#warehouseReceiptListList\\["+index+"\\]\\.itemName").val();
var specifications = $("#warehouseReceiptListList\\["+index+"\\]\\.specifications").val();
// console.info(itemId);
var id = itemId.split(",");
var name = itemName.split(",");
var s = specifications.split(",");
if(id.length>1){
for(var i = 0;i<id.length;i++){
addtr();
var q = index + i;
if(i==0){
$("#warehouseReceiptListList\\["+index+"\\]\\.itemId").val(id[i]);
$("#warehouseReceiptListList\\["+index+"\\]\\.itemName").val(name[i]);
$("#warehouseReceiptListList\\["+index+"\\]\\.specifications").val(s[i]);
console.info(s[i]);
} else{
$("#warehouseReceiptListList\\["+q+"\\]\\.itemId").val(id[i]);
$("#warehouseReceiptListList\\["+q+"\\]\\.itemName").val(name[i]);
$("#warehouseReceiptListList\\["+q+"\\]\\.specifications").val(s[i]);
}
}
}
}