mui页面传值

首页实现代码:

1
2
3
4
5
6
7
8
mui.openWindow({
url:'info.html',
id:'info.html',
extras:{
name:'mui',
version:'0.5.8'
}
});

跳转页面实现代码:

1
2
3
var self = plus.webview.currentWebview();
var name = self.name;
var version = self.version;