if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
// some code..
}
Javascript怎样检测客户端是移动设备(手机)
最新内容
- 1 day 13 hours ago
- 1 day 15 hours ago
- 1 day 15 hours ago
- 6 days 14 hours ago
- 4 weeks ago
- 1 month ago
- 1 month ago
- 1 month 1 week ago
- 1 month 2 weeks ago
- 1 month 3 weeks ago
最新评论
- nb 4 months 2 weeks ago
- sfes 5 months 1 week ago
- 好强大,谢谢推荐! 7 months ago
- 建议使用Ventoy 7 months ago
- Debian 12不再区分自由固件和非自由固件版本 7 months 2 weeks ago
- 用户登录自动运行软件的方法 7 months 2 weeks ago
- 经沟通,这应该是因为安装程序白屏… 8 months ago
- It works for me. I don't… 8 months ago
- 尝试ubuntu mate 8 months ago
- 1 8 months 2 weeks ago
评论