正则匹配移动端

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

 

posted @ 2019-10-17 12:28  八十易  阅读(257)  评论(0)    收藏  举报