Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Oo

725 views

Published on

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

Oo

  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

×