1 $(window).bind("load resize",function(){
2     document.documentElement.clientWidth >= 600 ? console.log("hello") : console.log("xiaoyu600")
3     });
4     //第二种
5     $(window).bind("load resize",function(){
6      if(document.documentElement.clientWidth >= 600) console.log("hello111")
7     });

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-05-24
  • 2022-03-04
  • 2021-05-02
相关资源
相似解决方案