修复js控制台报错
This commit is contained in:
@@ -600,9 +600,10 @@ window.onload=function(){
|
|||||||
heightDiv();
|
heightDiv();
|
||||||
},500);
|
},500);
|
||||||
|
|
||||||
|
if($('.table-responsive')){
|
||||||
var tableCont = document.querySelector('.table-responsive');
|
var tableCont = document.querySelector('.table-responsive');
|
||||||
|
if(tableCont !=null && tableCont!=''){
|
||||||
function scrollHandle (e){
|
function scrollHandle (e){
|
||||||
console.log(this);
|
|
||||||
var scrollTop = this.scrollTop;
|
var scrollTop = this.scrollTop;
|
||||||
$('th').css('transform','translateY(' + scrollTop + 'px)');
|
$('th').css('transform','translateY(' + scrollTop + 'px)');
|
||||||
$('thead tr').css('z-index','2147482468');
|
$('thead tr').css('z-index','2147482468');
|
||||||
@@ -612,6 +613,8 @@ window.onload=function(){
|
|||||||
}
|
}
|
||||||
tableCont.addEventListener('scroll',scrollHandle);
|
tableCont.addEventListener('scroll',scrollHandle);
|
||||||
$('#contentTable').attr("margin-top",'0px');
|
$('#contentTable').attr("margin-top",'0px');
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
var setInterceptDefaultInfo=function(cfgId){
|
var setInterceptDefaultInfo=function(cfgId){
|
||||||
var action=$("input[name='action']:checked").val();
|
var action=$("input[name='action']:checked").val();
|
||||||
|
|||||||
Reference in New Issue
Block a user