//监听元素变化classList
	//监听元素变化className
	//方法一
 	var tab2Interval = setInterval(function(){
 		if(!!($('#tab-2').get(0).className) && ($('#tab-2').get(0).className).includes('active')) {
 			viewShow.resertTableHeight();
 			clearInterval(tab2Interval);
 		} 
 	},10);
	//方法二
//	Object.defineProperty($('#tab-2').get(0),'classList', {
//                get: function () {
//                    return classList;
//                },
//                set: function (newValue) {
//                   viewShow.resertTableHeight();//变更后触发
//                }
//   });

  

$(window).resize(function(){   
		viewShow._initGridList();
		viewShow.resertTableHeight()
    });

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2021-08-03
  • 2021-10-22
猜你喜欢
  • 2021-12-26
  • 2019-09-23
  • 2022-12-23
  • 2021-12-28
  • 2021-07-01
  • 2022-02-15
相关资源
相似解决方案