var userAgent = navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(userAgent)) {
console.log("Ios");
} else if (/android/.test(userAgent)) {
console.log("Android");
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/404389.html
標籤:其他
