html網頁判斷手機還是電腦登陸進入的方法
來源:懂視網
責編:小采
時間:2020-11-27 15:34:25
html網頁判斷手機還是電腦登陸進入的方法
html網頁判斷手機還是電腦登陸進入的方法:這篇文章詳解html網頁判斷手機還是電腦登陸進入的方法<script type="text/javascript"> try{ if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { window.location
導讀html網頁判斷手機還是電腦登陸進入的方法:這篇文章詳解html網頁判斷手機還是電腦登陸進入的方法<script type="text/javascript"> try{ if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { window.location

這篇文章詳解html網頁判斷手機還是電腦登陸進入的方法
<script type="text/javascript">
try{
if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
window.location.href="mindex.html";
}else{
window.location.href="cindex.html";
}
}catch(e){}
</script>
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
html網頁判斷手機還是電腦登陸進入的方法
html網頁判斷手機還是電腦登陸進入的方法:這篇文章詳解html網頁判斷手機還是電腦登陸進入的方法<script type="text/javascript"> try{ if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { window.location