$$('form.ajax-submit').on('submitted', function (e) { var xhr = e.detail.xhr; // actual XHR object var data = JSON.parse(e.detail.data); // Ajax repsonse from action file var r=confirm("是否确认提交审核?") if (r==true) { if(data.success) { alert('保存成功!'); mainView.router.back(); } } else { alert('保存失败:'+data.msg); } });