1、IE8下String的Trim()方法失效的解决方法

用jquery的trim()方法,$.trim(str)就可以了;

例:_id.trim() !='' 改为  $.trim(_id) != ''

 

2、IE8下setTimeout()无效

遇到这个问题,setTimeout(Scroll(),3000); 这种写法在IE8 下 不能够执行,提示参数无效,

setTimeout(function(){Scroll()},3000);这种方式就可以了。

遇到这个问题,setTimeout(Scroll(),3000); 这种写法在IE8 下 不能够执行,提示参数无效,

setTimeout(function(){Scroll()},3000);这种方式就可以了。

相关文章:

  • 2022-12-23
  • 2021-06-12
  • 2021-12-09
  • 2021-10-31
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2022-02-11
  • 2021-07-10
  • 2022-12-23
  • 2022-02-16
相关资源
相似解决方案