Your SlideShare is downloading. ×
舒舒服服的写Javascript
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

舒舒服服的写Javascript

207

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
207
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. OO.javascript with Mootools
  • 2. OO & js.prototype{} & prototype ready for javascript.OOOO:
  • 3. OO & js.prototypefunction(
  • 4. js.framworkjQueryYUIPrototypeDojoMootools... ... ...
  • 5. js.framwork
  • 6. js.framwork
  • 7. Mootools.DataTypeArrayStringNumberFunctionObjectEvent
  • 8. Element Type(Element Node) DOMEle.getElement(‘.abc’) //return class=‘abc’Ele.getElements(‘.abc’) // return []Ele.getParent(‘.par’) // return parent.par
  • 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. new Class var abc = new Class({});var cc = new Class({extend:abc});abc.extend({});
  • 11. new Class
  • 12. eg:Interseting APIele[form].toQueryString();JSON.decode //return objJSON.encode // return stringFxChain
  • 13. Classes
  • 14. after OO
  • 15. The end

×