大家好,又见面了,我是你们的朋友全栈君。
jq 取 scrollHeight, $(“#tendersList”).scrollHeight 拿不到
$(“#tendersList”)[0].scrollHeight //取值scrollHeight
$scope.initScroll = function ($last) {
if ($last){
console.log($("#tendersList").height());
$("#scrollWatch").scrollTop($("#tendersList")[0].scrollHeight);
}
}
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/163718.html原文链接:https://javaforall.net