经过多次测试,终于可以实现从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,一起交流下
1 个回复
(作者)
经过多次测试,终于可以实现从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,一起交流下