Your SlideShare is downloading. ×
0
•••
••
•–•–•–
••–
•object.on(event, callback, [context])•object.off([event], [callback], [context])•object.once(event, callback, [context])•...
•object.listenTo(other, event, callback)•object.stopListening([other], [event], [callback])•object.listenToOnce(other, eve...
onofflistenTostopListeningchangechange:attributedestroysyncinvaliderrorchangechange:attributedestroyaddremoveDOM events
•••••
••••
•–––•–•–
sync(method, model, [options])•••
•–––•––
•••
get(attributes)set(attributes)changechange:attributedestroyaddremovesyncvia JSONfetchdestroyvalidateidurlurlRoot
•••
model
•••••••
add(model)remove(model)changechange:attributedestroyaddremovesyncvia JSONfetchsortpluckfindWherepush/popremoveaturl

this.el•– body, ul, span, img•–•–<div>
render()this.elrender()
eventsrender()remove()initializeundelegateEventstagNameclassNameidtouchend
•–•–
•–•–
Backbone.history.start()
routesactionsroutenavigate

Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Backbone.js
Upcoming SlideShare
Loading in...5
×

Backbone.js

666

Published on

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

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

No notes for slide

Transcript of "Backbone.js"

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

    Clipping is a handy way to collect important slides you want to go back to later.

×