我需要在运行animate事件时检测div的“collectionFilterPage”的总高度。有什么事情要约束吗? 这是我的JA代码:jquery触发器div高度变化事件(动画?)
function showMoreItems() {
$("#collectionFilterPage").animate({
height: "+=720"
}, 1000, function() {
if ($("#collectionFilterPage").outerHeight() >= $(".lista").outerHeight())
unbindScrollEvent();
});
}
基本上,我会想火“unbindScrollEvent”当两个格“collectionFilterPage”和“LISTA”具有相同的高度。 谢谢