修复js控制台报错

This commit is contained in:
leijun
2018-09-27 18:18:12 +08:00
parent 1246062bf2
commit e04b44b66a

View File

@@ -600,18 +600,21 @@ window.onload=function(){
heightDiv();
},500);
var tableCont = document.querySelector('.table-responsive');
function scrollHandle (e){
console.log(this);
var scrollTop = this.scrollTop;
$('th').css('transform','translateY(' + scrollTop + 'px)');
$('thead tr').css('z-index','2147482468');
$('thead tr').css('position','relative');
$('th').css('border','1px solid rgb(255, 255, 255)');
$('th').css('background-clip','padding-box');
}
tableCont.addEventListener('scroll',scrollHandle);
$('#contentTable').attr("margin-top",'0px');
if($('.table-responsive')){
var tableCont = document.querySelector('.table-responsive');
if(tableCont !=null && tableCont!=''){
function scrollHandle (e){
var scrollTop = this.scrollTop;
$('th').css('transform','translateY(' + scrollTop + 'px)');
$('thead tr').css('z-index','2147482468');
$('thead tr').css('position','relative');
$('th').css('border','1px solid rgb(255, 255, 255)');
$('th').css('background-clip','padding-box');
}
tableCont.addEventListener('scroll',scrollHandle);
$('#contentTable').attr("margin-top",'0px');
}
}
}
var setInterceptDefaultInfo=function(cfgId){
var action=$("input[name='action']:checked").val();