求一个简单稳定的方法
function isPhone() { var flag = false; var userAgentInfo = navigator.userAgent; var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; for (var i = 0; i 0) { flag = true; break; } } return flag; }