js判断当前移到浏览器版本

 navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i) 
原文地址:https://www.cnblogs.com/zhangwei595806165/p/5252936.html