window on load and resize jquery both in same time calling
Yes, you can call both the window load and resize events in jQuery at the same time using the $(window).on() method. Here's an example:
$(window).on('load resize', function() {
// your code here
});
This code will run the specified function when the window is loaded or resized. You can replace the comment with your own code that needs to be executed.
原文地址: http://www.cveoy.top/t/topic/b7TV 著作权归作者所有。请勿转载和采集!