A new function of prototype-$$

Source: Internet
Author: User
Tags new features

Prototype's official website has only 1.3.1 downloads, but the 1.4.0 version has been available for download one months ago, and the development of new features continues.

Get the message from Ajaxian: the $ (X) series function that prototype is famous for adds new members--$$ ()--this function will be a quick way to cssselector. Use the form code as follows:

$$ (' div#pagep.summaryimg '). each (element.hide);

The preceding code hides the picture in the paragraph with the ID "summary" and the paragraph must be a child of the div block element with the ID "page".

This shows that the application of cssselector is becoming more and more popularized, also shows that the structure and performance separation, behavior binding structure of the Web page development concept has been deeply rooted.

Report:

Behaviour is a simple class library on the prototype Web site that uses Cssselector to register a script event handler. The introduction of the $$ () method shows that prototype has integrated behaviour.

jquery is another small class library that focuses on providing the $$ () method functionality.

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.