判断移动端还是电脑端 代码 查看navigator 代码 <script> //定义一个函数判断是手机端还是pc端 function isMobile(){ if(window.navigator.userAgent.match(