代码如下: <html> <head> [removed] /* 判断设备是否为PC */ function isPC() { var userAgentInfo = navigator.userAgent; var Agents = new Array(“Android”, “iPhone”, “SymbianOS”,”Windows Phone”, “iPad”, “iPod”); var flag = true; for ( var v = 0; v < Agents.length; v++) { if (userAgentInfo.index