• 发布:2015-11-26 22:02
  • 更新:2015-11-28 18:48
  • 阅读:1745

多层页面跳转问题

分类:MUI

从A页面跳转到B
然后从B里点击跳转到C
然后C点关闭的时候需要回到A
这种情况怎么办好?

2015-11-26 22:02 负责人:无 分享
已邀请:

(作者)

经过多次测试,终于可以实现从C页面直接跳到A页面了
代码如下
<script type="text/javascript">
mui.init({
beforeback:function(){
//alert("before back");
var incall = plus.webview.getWebviewById("examples/incall.html");
//var incall = plus.webview.currentWebview().parent();
mui.fire(incall, 'close');
alert("haha");
}
});
mui("#scr").on('tap', ".hand-off", function(){
//alert("hello");
//var handpage = plus.webview.currentWebview().parent();
//mui.fire(handpage, 'close_page');
mui.back();
});
</script>

HTML+技术交流 134248727,一起交流下

该问题目前已经被锁定, 无法添加新回复