The JScript version in IE 5.5 is 5.5, and it has several important functions, such as push, pop, Shift, Unshift method, and encodeURI, decodeURI, and so on in the previous version of JScript. These additions are also supported by other browsers, such as Moziila/firefox and Opera, in the current context. Therefore, the current development site for IE browser can only be compatible to version 5.5, and for a lower version of IE (ie 5, ie 4, etc.), it is no longer considered. Although these low-level IE browsers are now not mainstream, they can be considered if they can be compatible without having to modify existing code. So I did the JScript 5.5 implementation of this compatible low version IE. Of course it is not completely compatible with JScript 5.5, but for some of the most commonly used methods, it has already been implemented.
The library is very simple to use, just add it to the Head section of the page:
<script type= "Text/javascript" src= "Iecompat.js" ></script>
It's OK.
Updated June 18, 2006
Add encodeURI, encodeURIComponent, decodeURI, decodeuricomponent support for 4-byte UTF8 encoding.
Updated February 17, 2006
The encodeURI, encodeURIComponent, decodeURI and decodeURIComponent are optimized and the processing speed is greatly improved.
Fully implemented:
Array object:
Push method
Pop method
Shift method
Unshift method
Splice method
In the Date object:
toDateString method
toTimeString method
toLocaleDateString method
toLocaleTimeString method
Function object:
Apply method
Call method
Global object:
Undefined property
encodeURI method
encodeURIComponent method
decodeURI method