表单提交

来源:互联网 发布:windows 7 vncserver 编辑:程序博客网 时间:2024/05/09 08:17

1、以对象方式提交

COMMON.ajax({btns:["#saveBtn"],url : 'customer/addCompInfo',data : $("#compForm").serialize(),dataType : 'json',type : 'post',success:function(data){if(data.success){window.location.reload();COMMON.alert('success',data.msg);}else{COMMON.alert('warn',"提交失败");}}});


0 0