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