在提交表单的时候,我们都需要关闭表单。需要关闭当前打开的窗口。
bit.alert('提交成功' + (result.category.needAudit ? ",请耐心等待管理员审核信息后显示" : ""), function () {
if (typeof window.listPage != 'undefined') {
mui.fire(window.listPage, 'reloadData', null);
}
if (mui.os.plus) {
mui.plusReady(function () {
var ws = plus.webview.currentWebview();
plus.webview.close(ws);
});
}
mui.back();
});
使用这句就可以关闭当前的窗口。