设置值时只需data.field.name(input中name属性)=1;即可赋值
data.field.index_desc = layedit.getContent(index_desc);
$.ajax({
url : "assess_index/doAdd",
method : 'post',
data : data.field,
dataType : 'JSON',
success : function(data) {
parent.layer.msg(data.msg);
if (data.result == "success") {
parent.loadCurrPageList();
closeIframe();
}
}
});
return false;
});
});
来源:https://www.cnblogs.com/java-llp/p/10858231.html