js判斷客戶端是pc端仍是移動端

Js判斷客戶端是否爲PC仍是手持移動設備 方法一javascript function IsPC(){ var userAgentInfo = navigator.userAgent; var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod");
相關文章
相關標籤/搜索