当前位置:首页 > 移动开发 > 正文

正则匹配移动端

2024-03-31 移动开发

if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){ }

 

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/yidong/18630.html