Prototype latest version (1.5rc2) User Guide (1) _ prototype

Source: Internet
Author: User
The latest version of Prototype (1.5rc2) User Guide (1) before writing this Guide, let's first introduce what Prototype is mainly, you should have heard of this javascript framework before. Prototype is a basic javascript Application Framework. First, we will reference an official website introduction.

Prototype is a JavaScript framework that aims to publish development of dynamic web applications. featuring a unique, easy-to-use toolkit for class-driven development and the nicest Ajax library around, Prototype is quickly becoming the codebase of choice for web application developers everywhere.

According to the author's own introduction, Prototype is designed to facilitate the development of javascript applications. With Prototype, you can easily and simply use javascript programming and develop javascript programs for objects, prototype contains a powerful and useful ajax framework. Prototype is a basic framework. Many higher-level frameworks are based on it, for example, the scriptaculous effect library Prototype contains the following parts:

Base: basic functions of applications in Prototype, basically all other parts depend on it, including Class for Object-Oriented style. create and Object. extend, a Try object, function binding, number extension, PeriodicalExecuter (periodic function execution), etc.
String: extended String prototype. strip, escapeHTML, and other useful methods are added to string.
Enumerable: A parent class Object of the enumeration type (array, hash, range, etc.). It provides a common method for enumeration types.
Array: extends the Array prototype by adding methods such as indexOf and without to the array.
Hash: provides a simple Hash implementation for javascript.
Range: inherited from enumerable, a range (for example, 3---67) object
Ajax: A Powerful and useful ajax framework
Dom: provides good cross-browser encapsulation for browser-based development and adds many powerful functions.
Selector: Provides the function of selecting elements such as class and css.
Form: some form functions
Event: simple platform event Encapsulation
Position: provides some features about the element position.

It can be said that Prototype just wanted a Swiss Army knife, which encapsulated many common functions for javascipt, greatly simplified the development of javascript applications, and increased a lot of confidence for javascript developers, prototype can run the platform, and it no longer has to worry about cross-platform issues. * Microsoft Internet Explorer for Windows, version 6.0 and higher * Mozilla Firefox 1.0/Mozilla 1.7 and higher * Apple Safari 1.2 and higher but note that Prototype should be well understood, we should first understand some knowledge about javascript object-oriented development. later articles will provide a detailed introduction to each function method in Prototype, including its functions and instances. Prototype Official Website: http://prototype.conio.net/, the current release version is only 1.4, but now the 1.5 has undergone a great change, and many prototype-based libraries use 1.5, we strongly recommend that you use svn to download the latest code.
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.