【小(xiǎo)編推薦】判斷移動端是(shì)什(shén)麽系統

2016-05-30  &≈∞Ωnbsp;|   發布者£δ:梁國(guó)芳  &✔'✔nbsp;|   查看(kàn):3320↑"次

php
 var ua = navigator.userAgent.toLowerC₽σase(); 
  if (/iphone|ipad|ipod/.​£→test(ua)) {
    xitong='iphon ±™e';
  } else if (/androσ₩₹id/.test(ua)) {
    xitong='↓✘android';
  }
  $.post('{:U("Scen↔σic/comment")}',{§©'yan':val,'img':imgarr,'sid':sid,'✔∏voice':voice,'xitong':≠ ≠xitong},function(data){
    location.href=locat'←πion.href
  });