最简单的判断移动端还是pc端
isMobile = 'ontouchstart' in document;
if(isMobile){
alert("移动端");
}else{
alert("pc端");
}
最简单的判断移动端还是pc端
欢迎关注小程序,感谢您的支持!
isMobile = 'ontouchstart' in document;
if(isMobile){
alert("移动端");
}else{
alert("pc端");
}
最简单的判断移动端还是pc端
欢迎关注小程序,感谢您的支持!