Load a function only if $(window).width() < 700

后端 未结 0 1256
庸人自扰
庸人自扰 2021-01-13 06:23

I have function like this:

test()
$(window).resize(test)

function test() {
  if($(window).width() < 700) {
     //load my function only for the view <          


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