f7a9a99d by yangjianbin

init

1 parent f430f56c
......@@ -44,7 +44,6 @@
}
},
submitHandler:function(form){
alert("提交事件!");
submit();
}
});
......@@ -62,15 +61,15 @@
contentType: "application/json; charset=UTF-8",
success:function(data){
if(data.msg){
alert(data.msg);
layer.alert(data.msg);
} else if(data.code != 0){
alert('请求失败');
layer.alert('请求失败');
} else {
alert('请求成功');
layer.alert('请求成功');
}
},
error:function(){
alert("请求失败")
layer.alert("请求失败")
}
})
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!