f7a9a99d by yangjianbin

init

1 parent f430f56c
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
44 } 44 }
45 }, 45 },
46 submitHandler:function(form){ 46 submitHandler:function(form){
47 alert("提交事件!");
48 submit(); 47 submit();
49 } 48 }
50 }); 49 });
...@@ -62,15 +61,15 @@ ...@@ -62,15 +61,15 @@
62 contentType: "application/json; charset=UTF-8", 61 contentType: "application/json; charset=UTF-8",
63 success:function(data){ 62 success:function(data){
64 if(data.msg){ 63 if(data.msg){
65 alert(data.msg); 64 layer.alert(data.msg);
66 } else if(data.code != 0){ 65 } else if(data.code != 0){
67 alert('请求失败'); 66 layer.alert('请求失败');
68 } else { 67 } else {
69 alert('请求成功'); 68 layer.alert('请求成功');
70 } 69 }
71 }, 70 },
72 error:function(){ 71 error:function(){
73 alert("请求失败") 72 layer.alert("请求失败")
74 } 73 }
75 }) 74 })
76 } 75 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!