|
|
|
|---|---|
| Developer(s) | The MooTools Dev Team |
| Stable release | 1.2.4 / 2009-10-19 |
| Written in | JavaScript |
| Type | Ajax framework / JavaScript Framework |
| License | MIT License |
| Website | http://mootools.net |
MooTools is an open source, lightweight, modular object-oriented programming JavaScript web application framework released under the MIT License. The goal of the software is to provide a means for intermediate to advanced web developers to write cross-browser JavaScript in an elegant, flexible, and efficient fashion. The MooTools JavaScript framework includes built-in functions for manipulation of CSS, DOM elements, native JavaScript objects, Ajax requests, and more. MooTools also provides a detailed, coherent API[1] to increase speed of development.
Contents |
MooTools aims to provide the user with a number of advantages over native JavaScript. Advantages include:
MooTools includes a number of components but not all need to be loaded for each application. Some of the component categories are:
MooTools is compatible and tested with[12]:
MooTools contains a robust Class creation and inheritance system that resembles most Object-oriented programming languages. For example, the following is MooTools' equivalent of the examples in Wikipedia's polymorphism page:
var Animal = new Class({ initialize: function(name){ this.name = name; } }); var Cat = new Class({ Extends: Animal, talk: function(){ return 'Meow!'; } }); var Dog = new Class({ Extends: Animal, talk: function(){ return 'Arf! Arf'; } }); var Animals = { a: new Cat('Missy'), b: new Cat('Mr. Bojangles'), c: new Dog('Lassie') }; for(var animal in Animals) alert(Animals[animal].name + ': ' + Animals[animal].talk()); // alerts the following: // // Missy: Meow! // Mr. Bojangles: Meow! // Lassie: Arf! Arf!
|
||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
|
|