layui form表单提交动态添加删除值 -------------简单记录下------------ layui.form.on('submit(tz)', function (data) { var ss = data.field["BelongReason"]; var a; switch (ss) { case "好好": a = 1; break; case "撒旦法": a = 2; break; } data.field["GSRType"] = a; var kc = data.field; $.ajax({ url: “/asd”, data: kc, ``` }); }