The use of MooTools method in Ajax

Source: Internet
Author: User
Tags empty mootools

Core.js

Function: $extend Copy all the properties of the second parameter object to the first parameter object.

Functions: $merge Merging a group of objects to generate a new object

Functions: $each iteration groups (including unconventional arrays, such as collection objects, arguments objects, or Ojbect objects returned by the built-in getElementsByTagName method)

Function: $pick Returns the first non-undefined item in the argument list; If all is undefined, NULL is returned

Function: $random returns a random integer within a specified interval

Function: $splat wrap incoming arguments into an array

Function: $time return the current timestamp

Function: $try attempts to execute a given set of functions and returns the return value of the first function that executed successfully;

Functions: $type detecting types of incoming arguments

Function: $chk detection parameter value exists (not null, undefined, false, or "") or 0. Applies to situations where 0 is also treated as a prevailing condition.

Function: $clear Clear Timer (timeout or interval). Usually used in conjunction with Function:delay and Function:periodical methods.

Function: $defined detect whether a parameter value is defined

Function: $arguments to create a function that returns a specific item for an incoming parameter (see example)

Function: $empty an empty function that doesn't do anything. Typical application: The placeholder method for event listeners.

Function: $lambda to encapsulate the parameters passed in. That is, if the incoming parameter is a function, the function is returned as it is, and if it is another object, it returns a newly created function that does nothing else. Just return to the original object.

Related Article

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.