代码:

master_headertop =document.getElementById('master_headertop');
if (master_headertop)
      master_headertop.style.display = 'none';

错误提示:

Object doesn't support this property or method.

 

更正为:

var master_headertop =document.getElementById('master_headertop');
if (master_headertop)
        master_headertop.style.display = 'none';

 

 

以下也是错误的:

getElementById('master_headertop').style.display = 'none';

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-05-21
  • 2022-12-23
  • 2021-07-14
猜你喜欢
  • 2022-02-15
  • 2021-09-19
  • 2021-07-15
  • 2021-05-18
  • 2021-12-14
  • 2022-01-14
  • 2022-12-23
相关资源
相似解决方案