赞
踩
通过uni.navigateToMiniProgram或uni.navigateToMiniProgramDirectly方法,跳转小程序页面,可以传递参数。
使用uni-app的uni.postMessage方法将数据传递给webView,小程序页面中监听message事件,接受webview传递的参数
在webview中,可以使用JavaScript的postMessage方法将数据传给小程序.
在uni-app页面中,通过监听uni.onMessage方法来接收webView传递的数据。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。