devcjq

检测PC端和移动端的方法总结(转)
https://www.cnblogs.com/mrdoor/p/5560775.html

JS判断是页面是在手机端还是PC端打开(navigator.userAgent)
https://www.jianshu.com/p/fd4ab6b99f96

var isMobile = false;
// 检测userAgent
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
  isMobile = true;
}
if(isMobile){
  //移动端的处理逻辑
}

  两个js文件之间如何传参 全文:https://zhidao.baidu.com/question/1500468488442911339.html //js文件间传递

分类:

技术点:

相关文章:

  • 2021-10-09
  • 2021-05-10
  • 2021-12-19
  • 2021-11-26
  • 2021-11-26
  • 2021-07-03
  • 2022-02-05
  • 2022-12-23
猜你喜欢
  • 2022-01-26
  • 2021-11-26
  • 2021-10-15
  • 2022-12-23
  • 2022-03-01
  • 2021-11-26
相关资源
相似解决方案