简体   繁体   中英

JQuery - Window resized from DOM - fire event

When a browser window is resized, I understand there's a JQuery method to hook it up to a event handler.

I was wondering if there's one, if the window is resized from the DOM, is there a way to do this?

This should work

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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