Microsoft Ajax Library Study Notes 1

Source: Internet
Author: User

Microsoft has developed a set of JS class libraries combined with the MVC framework to provide richer methods for original DOM objects. With jquery, what's even more exciting is that this JS actually provides a JS version of Data Binding similar to the WPF method.

Let's learn about this set of Js.

: Http://www.asp.net/ajaxlibrary/download.ashx

Microsoftajax. js

basic JavaScript Type Extension
array extends the array type of JavaScript through static functions
Boolean extends the Boolean object of JavaScript
date date object extension
error provides a set of static functions to expand the built-in exceptions of the Javascript error type, enable Program compiling mode (debugging or publishing)
Number expands the Javascript number type using static functions and instance methods
the object provides reflection (reflection-like) for the JavaScript Object) function
string extension of the string object function of JavaScript using static functions and instance methods

Extended functions of the array class include:

Description

Array. Add function

Add an elementArrayThe end of the object.

Array. addrange Function

Copy all elements of the specified arrayArrayThe end of the object.

Array. Clear Function

SlaveArrayRemoves all elements from an object.

Array. Clone Function

CreateArrayA superficial copy of an object.

Array. Contains Function

Determine whether an element is inArrayObject.

Array. dequeue Function

SlaveArrayRemoves the first element from the object.

Array. enqueue Function

Add an elementArrayThe end of the object.

Note:

Use the Add function instead of the array. enqueue function.

Array. foreach Function

PairArrayEach element of the object performs the specified operation.

Array. indexof Function

SearchArrayThe specified element of the object and the index of the element is returned.

Array. Insert Function

InArrayInsert a value at a specified position in the object.

Array. parse function

Create from string representationArrayObject.

Array. Remove Function

RemoveArrayThe first match of an element in the object.

Array. removeat Function

RemoveArrayThe element at the specified position in the object.

Example:

<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <HTML xmlns = "http://www.w3.org/1999/xhtml"> 

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.