mui 关闭当前窗口

在提交表单的时候,我们都需要关闭表单。需要关闭当前打开的窗口。

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();
                                        });

使用这句就可以关闭当前的窗口。

猜你喜欢

转载自www.cnblogs.com/gzbit-zxx/p/10393852.html
MUI
今日推荐