Jquery窗口发生变化回调函数

$(window).resize(function() {
var win_width = $(window).width();
var win_height = $(window).height();
console.log(win_width);
console.log(win_height);
});
posted @ 2020-08-21 14:22  非凡云  阅读(301)  评论(0编辑  收藏  举报