Prototype is a JavaScript framework that aims to ease development of dynamic web applications. It offers a familiar class-style OO framework, extensive Ajax support, higher-order programming constructs, and easy DOM manipulation.
To use Prototype in your application, download the latest release from the Prototype web site (http://prototypejs.org/download) and copy dist/prototype.js
to a suitable location. Then include it in your HTML like so:
<script type="text/javascript" src="/path/to/prototype.js"></script>
This area contains narrative documentation you can use to discover Prototype.
Learn how to define classes and subclasses in Prototype and how to make supercalls.
Learn how Prototype adds custom methods to DOM element nodes — and how you can define your own custom methods.
Learn how Prototype simplifies the most common kinds of Ajax requests.
Learn about Prototype‘s support for JSON encoding and decoding.
Learn about Prototype‘s support for event delegation: an advanced technique for event-driven programming.
Learn how Prototype makes it easy to get pixel measurements of elements.
原文:https://www.cnblogs.com/chucklu/p/11100977.html