サイズと異なる値の出力に応じて、どのようにjqueryのリスニングブラウザウィンドウのサイズ

1 $(ウィンドウ).bind( "ロード・リサイズ"、関数(){
 2      document.documentElement.clientWidth> = 600はconsole.log( "こんにちは"):はconsole.log( "xiaoyu600" 3      })。
4      // 第二种
5      $(ウィンドウ).bind( "ロード・リサイズ"、関数(){
 6       場合(document.documentElement.clientWidth> = 600)はconsole.log( "hello11​​1" 7      })。

 

おすすめ

転載: www.cnblogs.com/guoliping/p/11112546.html