修复js控制台报错

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

View File

@@ -600,9 +600,10 @@ window.onload=function(){
heightDiv();
},500);
if($('.table-responsive')){
var tableCont = document.querySelector('.table-responsive');
if(tableCont !=null && tableCont!=''){
function scrollHandle (e){
console.log(this);
var scrollTop = this.scrollTop;
$('th').css('transform','translateY(' + scrollTop + 'px)');
$('thead tr').css('z-index','2147482468');
@@ -612,6 +613,8 @@ window.onload=function(){
}
tableCont.addEventListener('scroll',scrollHandle);
$('#contentTable').attr("margin-top",'0px');
}
}
}
var setInterceptDefaultInfo=function(cfgId){
var action=$("input[name='action']:checked").val();