0

My website is viewing perfectly fine in latest Firefox versions, chrome versions, and IE 9 and above. But the problem begins when it is opened in IE 8.

On debugging I explored that IE 8 does not support string functions like .trim, .indexof etc. So I have to find alternate methods for each string function.

But I have used these functions alot almost in every js.

I read on the net that this compatibility issue can be resolved by adding some meta tag in the head section. (x-ua-compatible).

4

1 回答 1

1

你是对的,.indexOf不适用于 IE8 或更低版本。您可以改用 jQuery $.inArray() $.trim()

于 2014-06-03T06:10:26.387 回答