/*
* 描述:页面销毁封装
* 说明:针对订单特殊定位页面
* 返回首页,页面空白前进行销毁页面处理
* 使用:plusReady之后
*/

(function(w) {
var destruction = {
/**
* @param {需要销毁的页面id}pagId
* 该方法的作用为销毁当前页面以及所包含子窗体
*/
pagDestroy: function(pagId) {
var baseView = plus.webview.getWebviewById(pagId);
if(baseView != null) {
var obj = baseView.children();
baseView.close("none", 0);
$.each(obj, function(index, elm) {
elm.close("none", 0);
});
}
},
/**
*
* @param {需要销毁的页面id}pagId
* 该方法的作用为销毁当前页面
*/
pagDestroyMain: function(pagId) {
var baseView = plus.webview.getWebviewById(pagId);
baseView.close("none", 0);
},
/**
*
* @param {需要销毁的页面id}pagId
* 该方法的作用为销毁当前页面的子窗体
*/
pagDestroyChild: function(pagId) {
var baseView = plus.webview.getWebviewById(pagId);
if(baseView != null) {
var obj = baseView.children();
$.each(obj, function(index, elm) {
elm.close("none", 0);
});
}
},
}
w.pagDestruction = destruction;
})(window)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2021-11-14
  • 2021-10-14
  • 2021-10-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案