官术网_书友最值得收藏!

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 and Chain 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.

主站蜘蛛池模板: 应城市| 民勤县| 黎平县| 开平市| 陵水| 武汉市| 平遥县| 上饶市| 孝义市| 麻阳| 苍南县| 建昌县| 昔阳县| 乌拉特中旗| 金秀| 延边| 迭部县| 临夏市| 榆林市| 桂林市| 固始县| 桂阳县| 桐梓县| 太保市| 班戈县| 礼泉县| 咸宁市| 永清县| 荔波县| 泰兴市| 黔江区| 高邑县| 体育| 门源| 平江县| 平武县| 清河县| 衡南县| 绍兴市| 余江县| 双桥区|