[英]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?
我怎么能避免比页面打开不执行此?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.