Tencent / wepy

小程序组件化开发框架
https://wepyjs.gitee.io/wepy-docs/
Other
22.55k stars 3.05k forks source link

wepy 怎么跟web-view 组件进行交互? #1285

Closed 1peng closed 6 years ago

1peng commented 6 years ago

// javascript wx.miniProgram.navigateTo({url: '/path/to/page'}) wx.miniProgram.postMessage({ data: 'foo' }) wx.miniProgram.postMessage({ data: {foo: 'bar'} }) wx.miniProgram.getEnv(function(res) { console.log(res.miniprogram) // true })

官方如上。但是在wepy上不好使

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. 因为这个 Issue 最近没有任何有效回复,所以被自动标记为了stale。 如果在未来7天依旧没有任何激活操作,那么该 Issue 将会被自动关闭。 感谢您的提问。

Gcaufy commented 6 years ago

这里并没有特殊处理。官方怎么用,那在wepy里也是这么用。不工作可能还是需要自己定位一下看看。这个问题应该和wepy无关