IE under window.onresize multiple calls with dead loop bug handling method

  • 2020-03-29 23:42:27
  • OfStack

Window.onresize has been executed many times in Internet explorer and even has a bug that causes the browser to jam

PS: the navigator userAgent. Split (";" ) [1]. ToLowerCase (). IndexOf (" msie ") > -1 the "toLowerCase()" method has an undefined error in chrome for this ie problem.

So the correction for the navigator. UserAgent. ToLowerCase () indexOf (" msie ") > - 1


Related articles: