简体   繁体   English

如何在加载页面上不执行窗口调整大小

[英]How to window resize not execute on load page

i need execute commands only than window size changing i try this: 我只需要执行命令,而不是改变窗口大小,我可以这样:

$(window).resize(function () {
    //my execute commands
});

It's works but this code same execute then page is opening. 它是可行的,但此代码相同,然后执行,然后打开页面。 I don't need that i need only than window resizing. 我不需要只调整窗口大小。 How i can avoid than page it's opening not execute this? 我怎么能避免比页面打开不执行此?

Use: 采用:

$(window).bind('resize', function() {});

Demo 演示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM