代码拉取完成,页面将自动刷新
经排查是:
$("input[type=checkbox]").each(function(){
$(this).after("<input type="hidden" name=""+$(this).attr("name")+"" value=""
+($(this).attr("checked")?"1":"0")+""/>");
$(this).attr("name", "_"+$(this).attr("name"));
});
这段代码实现逻辑有误,导致相关属性未被正确设置。