'); } }; // 判斷是否移動端 function goPAGE() { if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) { // window.location.href="移動端url"; //判斷訪問環境是 移動端 則加載以下樣式 setStyle(['https://u-static.lmjx.net/2020/shaifenjizt/css/m.css']); } else { // window.location.href="pc端url"; setStyle(['https://u-static.lmjx.net/2020/shaifenjizt/css/style.css']); } } goPAGE();