Home  >  Article  >  Backend Development  >  PHP js code to determine whether mobile phone access

PHP js code to determine whether mobile phone access

WBOY
WBOYOriginal
2016-07-25 09:00:36623browse
  1. if(navigator.platform.indexOf('Win32')!=-1){
  2. //go to pc
  3. }else{
  4. // go to mobile
  5. }
Copy code


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn