📌  相关文章
📜  react native webview postmessage example - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:18.030000             🧑  作者: Mango

代码示例1
if(navigator.appVersion.includes('Android')){
            document.addEventListener("message", function (data) {
               alert("you are in android OS");
            });
        }
else {
            window.addEventListener("message", function (data) {
               alert("you are in android OS");               
             });
        }