📅  最后修改于: 2022-03-11 15:02:24.180000             🧑  作者: Mango
function isIOSDevice(){
return !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);
}
if(isIOSDevice()){
console.log("I am an IOS device!");
}