标签:ble count page event doc children child console lis
document.querySelector(".fixed-table-body").addEventListener("scroll", function(){alert("监听滚动条事件")});
var func_scrolltop = function(){
// console.log(tspg.soltop);
var a = document.querySelector(".layui-table-main");
if(tspg.soltop>0){
a.scrollTop = tspg.soltop;
}
a.addEventListener("scroll", function(){
tspg.soltop = this.scrollTop;
});
};
var func_go_page = function(a,b){
if(a.count > 0){
var sel = document.querySelector(".layui-laypage-limits").children[0].value;
tspg.page = {curr:b,limit:sel};
}else {
tspg.page = {curr:1};
}
};
标签:ble count page event doc children child console lis
原文地址:https://www.cnblogs.com/neights/p/13065294.html