- MooTools 1.2 Beginner's Guide
- Jacob Gube Garrick Cheung
- 200字
- 2025-03-31 06:31:00
Summary
In this chapter we learned about:
- The concept of unobtrusive JavaScript. We did this by creating an "obtrusive" example and then reworked into an unobtrusive and more elegant solution.
- The concept of classes. We created our own class, explored it, and even extended it with another class. This gives us the basis of the structure and design of the MooTools framework.
- We learned the basics of using a class in MooTools. We used the
Fx.Tween
andChain
class to animate a blue box. - Chainability: We discovered how we can chain methods one after another and execute them in sequence.
Though we covered a lot of theories in this chapter, it was necessary to give us a solid foundation for the next chapters and to give us a full understanding of how to write good MooTools code. Anyone can hack and dice with MooTools, but you now possess the knowledge of writing MooTools code that you can be proud of.
Now that we have some understanding of how to write JavaScript with MooTools, we are going to move right along with the thing you'll be doing the most of with MooTools, selecting and manipulating things in the Document Object Model.