var autoScrollTop = function (param) {
var delay = param.scrollDom.height() * 20;
param.dom.animate({
"scrollTop": param.dom.offset().top - param.dom.height()
}, delay, function () {
param.dom.animate({
"scrollTop": 0
}, 0);
Common.autoScrollTop(param);
});
}
调用方法:
Common.autoScrollTop({
"dom": $("#left_bottom_table"),
"scrollDom": $("#left_bottom_table table")
})
欢迎提出意见及评论~~