var windowHeight = $(window).height();
window.addEventListener('resize', function () {
$(window).height() < windowHeight ? $('.wx_box').hide() : $('.wx_box').show();
});
var windowHeight = $(window).height();
window.addEventListener('resize', function () {
$(window).height() < windowHeight ? $('.wx_box').hide() : $('.wx_box').show();
});
转载于:https://my.oschina.net/u/1773772/blog/3060342