how to run javascript when screen size over certain width size?

前端 未结 0 1728
醉梦人生
醉梦人生 2021-02-05 12:21

I want to run certain javascript only when the window width is over 1024. The script is long. I\'ve tried to combine them with

if ($(window).width() >= 1024

but

相关标签:
回答
  • 消灭零回复
提交回复
热议问题