mui 在页面传值提示webview[] does not exist 这个错误?解决办法
来源:互联网 发布:淘宝网东款长裙 编辑:程序博客网 时间:2024/05/16 23:39
提示这个错误,就是没有定义这个webview页面
1、在父页面
解决在mui.init里预加载这个页面
mui.init({
preloadPages:[//缓存其他页面
{
url: '../SellerHome/seller_index.html', //子页面HTML地址,支持本地地址和网络地址
id: '../SellerHome/seller_index.html', //子页面标志
}
]
});
在使用 mui.fire跨页面传值:
var detailPage = plus.webview.getWebviewById(‘../SellerHome/seller_index.html’);
//触发详情页面的newsId事件
mui.fire(detailPage,'look_shops',item);
//打开详情页面 www.bcty365.com
mui.openWindow({
id:‘../SellerHome/seller_index.html’
});
2、在子页面:
window.addEventListener('look_shops', function(event) { //商户详细页面
console.log(JSON.stringify(event.detail))
});
解决问题,页面传值解决,如果又跟好的办法,希望多多指点
阅读全文
0 0
- mui 在页面传值提示webview[] does not exist 这个错误?解决办法
- cscope file does not exist 错误解决办法
- U盘安装centos 7 提示 “Warning: /dev/root does not exist, could not boot” 解决办法
- U盘安装CentOS 7提示 “Warning: /dev/root does not exist, could not boot” 解决办法
- U盘安装centos 7 提示 “Warning: /dev/root does not exist, could not boot” 解决办法
- U盘安装centos 7 提示 “Warning: /dev/root does not exist, could not boot” 解决办法
- shared memory realm does not exist解决办法
- WebDriverAgent : Command "bootstrap" does not exist解决办法:
- Tomcat报 XXX does not exist or is not a readable directory错误时的解决办法
- ORA-01034:oracle not available. ORA-27101:shared memory realm does not exist 错误解决办法之一
- package R does not exist错误
- 解决错误:build.properties does not exist
- package R does not exist错误
- cscope file does not exist 错误解决方法
- mysql 错误 FUNCTION nlssort does not exist
- 管理员克隆gitolite-admin时提示“ERROR:gitosis.app:Configuration does not exist”错误
- mybatis generator 生成代码时错误提示The specified target project directory src does not exist
- Eclipse错误:Problems opening an editor Reason: [Project Name] does not exist解决办法
- 引导页
- RocketMQ4.0源码分析之-消息消费管理
- ORACLE递归查询(适用于ID,PARENTID结构数据表)
- win10+hexo+github搭建个人博客
- ACM 线段树
- mui 在页面传值提示webview[] does not exist 这个错误?解决办法
- js获取Html元素的实际宽度高度(offsetWidth)
- css中强大的EM
- Java 编译时内存超过
- nodejs入门(05)-Stream(流)
- Servlet+JSP知识总结和梳理
- Template使用总结
- HDU-2084-数塔
- <Android APK签名验签>一:生成keystore对APK签名