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

Like this? Share it with your network

Share

舒舒服服的写Javascript

on

  • 315 views

 

Statistics

Views

Total Views
315
Views on SlideShare
315
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

舒舒服服的写Javascript Presentation 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