dwz框架学习笔记之(五)
success:function(data){
if(data.flag==true){
alertMsg.correct('提交成功!');
}else{
alertMsg.error('提交失败!');
}
}
由于dwz框架自带了提示框,所以如果提交成功,就显示成功的提示框,提交失败了,就显示警告的提示框。
success:function(data){
if(data.flag==true){
alertMsg.correct('提交成功!');
}else{
alertMsg.error('提交失败!');
}
}
由于dwz框架自带了提示框,所以如果提交成功,就显示成功的提示框,提交失败了,就显示警告的提示框。