asker
asker
  • 发布:2015-04-09 21:47
  • 更新:2015-04-10 16:35
  • 阅读:4627

mui.fire的跳转问题. 在iOS和安卓中不同效果.

分类:MUI

过程是登陆->登陆完成->跳转到home页

登陆后, 在iOS系统中无法跳转, 安卓中可以跳转, 这个是怎么回事?
谁可以帮下.

主要代码如下

mui.fire(plus.webview.all()[1], 'goto', {  
	title: 'mui.fire.test',  
	href: 'home.html'  
});
2015-04-09 21:47 负责人:无 分享
已邀请:
DCloud_UNI_FXY

DCloud_UNI_FXY

不建议使用plus.webview.all()[1]这样的方式。

建议直接通过id来获取具体的webview

另外,代码贴的全一点。

  • asker (作者)

    已经更新了代码


    2015-04-10 16:35

stock2

stock2

还能这样用啊. 文档在哪里啊

  • DCloud_UNI_CHB

    mui.fire的使用方法参考:http://dev.dcloud.net.cn/mui/event/#customevent


    2015-10-06 21:53

asker

asker (作者)

document.getElementById('reg').addEventListener('tap',function(){  
			console.log('click 注册');  
			mui.fire(plus.webview.all()[1], 'goto', {  
				title: '注册',  
				href: 'user/reg.html'  
			});  
		});

代码是这样的, plus.webview.all()[1]是主页, 那应该如何修改?

  • DCloud_UNI_FXY

    plus.webview.getLaunchWebview()可以得到manifest.json里配置的入口页面webview


    2015-04-10 16:44

  • asker (作者)

    多谢, 搞定. 这个好.


    2015-04-10 21:49

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