init
Showing
1 changed file
with
4 additions
and
5 deletions
| ... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment