//获取行
var rows = $(".modelContent .cont");
console.log(rows);
//循环每一行
$(rows).each(function (index,obj) {
//将每一行中的 input[type='text'],select的对象取出,再进行一次循环
$("input[type='text'],select",obj).each(function (i,o) {
//当前对象 添加 name 属性值 name =employeeList[索引].对应的属性值
$(o).attr("name","templateModel["+index+"]."+$(o).attr("name"));
});
});