表单form自动ajax提交
` $(document).on("submit",".submitform",function(){
$(this).each(function(){
var that = this;
if($(that).data("bind_status")==1)return false;
$(that).data("bind_status",1);
var url = $(this).attr('url');
url = $.zcms._movar(url, $(this).attr("action"));
layer.load();
var param = $(this).serialize();
param += "&_return_mode=fun";
var i = $.post(url, param, function (data) {
$(that).data("bind_status",0);
layer.closeAll(); //关闭加载层
$.zcms._processMsg(data);
});
return false;
})
return false;
});`