📅  最后修改于: 2022-03-11 15:02:18.030000             🧑  作者: Mango
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");
});
}