用js判断当前环境是移动端还是pc端

用navigator.userAgent.match()方法,会返回一个布尔值
posted @ 2022-09-27 08:57  Freeandeasyz  阅读(34)  评论(0)    收藏  举报