Jquery released 1.2.3

Source: Internet
Author: User
I found myself paying close attention to jquery.

Http://jquery.com/blog/2008/02/08/jquery-123-air-namespacing-and-ui-alpha/

Major changes:

  1. Compatible with air (Adobe Integrated Runtime (air), [technical advantages of Adobe AIR and Adobe AIR]
  2. . Data () &. removedata ()
    Attaches data to and removes data from an object, $. data (element); // returns a uniqueid $. data (element, 'dataname') or $ (element ). data (dataname); // return value $. data (element, dataname, datavalue) or $ (element ). (dataname, datavalue); // set the value
  3. . BIND (". namespace"). Unbind (". namespace ")
    Jquery1.2 supports namespaced events. Events in a specific namespace can be grouped by multiple event responses.

    $ ("Div"). BIND ("click. plugin", function (){});
    $ ("Div"). BIND ("Mouseover. plugin", function (){});
    $ ("Div"). Unbind (". plugin"); // all handlers removed
  4. . Trigger ("click !")
    . Trigger () is used to trigger an event. It also supports the Event Mode of a specific namespace.

    $ ("Div"). BIND ("click", function () {alert ("hello ");});
    $ ("Div"). BIND ("click. plugin", function () {alert ("goodbye ");});
    $ ("Div"). Trigger ("Click! "); // Alert (" hello ") only

    There is also a. triggerhandler () method, which is similar to trigger (). However, it only triggers the bound Event Response Function and does not trigger the browser's default response method.

  5. Alpha release: jquery UI 1.5 and jquery enchant 1.0 [I haven't checked it yet]

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.