jquery如何監聽瀏覽器窗口大小並根據不一樣的大小輸出不一樣的值

1 $(window).bind("load resize",function(){ 2 document.documentElement.clientWidth >= 600 ? console.log("hello") : console.log("xiaoyu600") 3 }); 4 //第二種 5 $(window).bind("load resize",
相關文章
相關標籤/搜索