舒舒服服的写Java script

669 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
669
On SlideShare
0
From Embeds
0
Number of Embeds
64
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

舒舒服服的写Java script

  1. 1. OO.javascript with Mootools
  2. 2. OO & js.prototype{} & prototype ready for javascript.OOOO:
  3. 3. OO & js.prototypefunction(
  4. 4. js.framworkjQueryYUIPrototypeDojoMootools... ... ...
  5. 5. js.framwork
  6. 6. js.framwork
  7. 7. Mootools.DataTypeArrayStringNumberFunctionObjectEvent
  8. 8. Element Type(Element Node) DOMEle.getElement(‘.abc’) //return class=‘abc’Ele.getElements(‘.abc’) // return []Ele.getParent(‘.par’) // return parent.par
  9. 9. Mt include & weightDataType:Arr Str Num Fun Obj EventBrowser:(BOOL) Browser.xxx;Element:ele.get(‘text’) & ele.set(‘text’,‘hello world’)Class: new Class({}); // Mootools
  10. 10. new Class var abc = new Class({});var cc = new Class({extend:abc});abc.extend({});
  11. 11. new Class
  12. 12. eg:Interseting APIele[form].toQueryString();JSON.decode //return objJSON.encode // return stringFxChain
  13. 13. Classes
  14. 14. after OO
  15. 15. The end

×