1.微信小程序带参跳转h5代码
.js
Page( {
data :{
openid : ' 123456789x '
},
onLoad ( options ){
var openid = this . data . openid ;
this . setData( {
src : ' https://www.wlphp.com/test/test.php?openid= ' + openid
})
}
})
< web-view src =" {
{src}} "></ web-view >
2.h5页面php代码
.php
<?php print_r($_GET);?>
<meta name="viewport&#