function screenFuc() {
var winWidth = $(window).innerWidth();
if (winWidth <= 768) {
//屏幕小于768px
} else {
}
}
(window.onresize = function() {
screenFuc();
})();
jq监听窗口大小变化
最新推荐文章于 2021-07-05 23:25:55 发布