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">