uniapp端:
<template>
<view class="page-warp">
<web-view :src="url" @message="getWebMessage"></web-view>
</view>
</template>
<script>
export default {
data() {},
methods: {
getWebMessage(e) {
console.log('h5:',e)
}
}
}
</script>
H5端:
<script type="text/javascript" src="./js/jweixin-1.6.0.js"></script>
<div class="bottom-btn" @click="go_miniProgram">确定</div>
<script>
wx.miniProgram.postMessage({ data: “测试测试”})
</script>
FggFly (作者)
哈哈,也是不正常的
2021-05-24 13:40
DCloud_UNI_GSQ
回复 FggFly: 到小程序社区反馈下(先搜下是不是其他人反馈过了)
2021-06-02 17:22