- $.ajax({
- url:"mobileSurveyAction_addSurvey.action",//提交地址
- data:$("#form1").serialize(),//将表单数据序列化
- type:"POST",
- dataType:"json",
- success:function(result){
- if (result.success == '100'){
- $("#mySection").hide();
- $(".footer").hide();
- $("#alertMsg").show();
- }else{
- alert("失败!");
- }
- }
- });
- //该片段来自于http://www.codesnippet.cn/detail/1304201512227.html
来源: http://www.codesnippet.cn/detail/1304201512227.html