Backbone.js
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Backbone.js

on

  • 919 views

 

Statistics

Views

Total Views
919
Views on SlideShare
857
Embed Views
62

Actions

Likes
1
Downloads
72
Comments
0

1 Embed 62

http://www.ivanomalavolta.com 62

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

Backbone.js Presentation Transcript

  • 1. •••
  • 2. ••
  • 3. •–•–•–
  • 4. ••–
  • 5. •object.on(event, callback, [context])•object.off([event], [callback], [context])•object.once(event, callback, [context])•object.trigger(event, [*args])
  • 6. •object.listenTo(other, event, callback)•object.stopListening([other], [event], [callback])•object.listenToOnce(other, event, callback)
  • 7. onofflistenTostopListeningchangechange:attributedestroysyncinvaliderrorchangechange:attributedestroyaddremoveDOM events
  • 8. •••••
  • 9. ••••
  • 10. •–––•–•–
  • 11. sync(method, model, [options])•••
  • 12. •–––•––
  • 13. •••
  • 14. get(attributes)set(attributes)changechange:attributedestroyaddremovesyncvia JSONfetchdestroyvalidateidurlurlRoot
  • 15. •••
  • 16. model
  • 17. •••••••
  • 18. add(model)remove(model)changechange:attributedestroyaddremovesyncvia JSONfetchsortpluckfindWherepush/popremoveaturl
  • 19. 
  • 20. this.el•– body, ul, span, img•–•–<div>
  • 21. render()this.elrender()
  • 22. eventsrender()remove()initializeundelegateEventstagNameclassNameidtouchend
  • 23. •–•–
  • 24. •–•–
  • 25. Backbone.history.start()
  • 26. routesactionsroutenavigate
  • 27. 