发布时间:2023-10-27 15:23:43 点击数:594
思路:本质上webview其实就是iframe.
document.getElementsByTagName('iframe')[0].contentWindow.postMessage({action:'paySuccess',order_sn:order_sn});
H5接收:
window.addEventListener('message', function(event) {
if (event.data.action == 'paySuccess') {
}
}, false);