JScript 5.5 implementation compatible with low version ie

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.