ææãã§ã
çãããããã«ã¡ã¯ãid:KenichiroMurataã§ãã ä»åã¯Knowledge Noteã«ã¦é£è¼ããã¦é ãã¦ãã ã試ãã¦å¦ã¶Backbone.jså ¥éããå ¨ï¼ååå ¬éãããããããã®ã¾ã¨ãããããã¨æãã¾ãã è¨äºã®ã³ã³ã»ãã ã¿ã¤ãã«ã«å«ããéããå®éã«ã³ã¼ããæ¸ãã¦è©¦ãã¦ã¿ããã¨ã§Backbone.jsã®ç解ãæ·±ãããã¨ãä¸çªã®ç®çã¨ãã¦ãã¾ãã ãªã®ã§ããã²å®éã«è¨äºã®ä¸ã«åºã¦ããã³ã¼ããæ¸ãã¦ãåããã¦ãã³ã³ã½ã¼ã«ã®ãã°ãåä½ã確èªãããã¨ããã¹ã¹ã¡ãã¾ãã åè¨äºã®æ¦è¦ 第ï¼å 試ãã¦å¦ã¶Backbone.jså ¥é Backbone.jsã®æ¦è¦ãããã¤ã³ã¹ãã¼ã«æ¹æ³ãModelãCollectionã®åºæ¬ã説æãã¦ãã¾ãã ç®æ¬¡ ã¯ããã« ã»ããã¢ãã Modelã®åºæ¬ Collectionã®åºæ¬ Collectionã®ä¾¿å©ãªé¢æ° 第ï¼å 試ãã¦å¦ã¶Backbone.
ããèªãã§ããr7kamuraåã«JSã®MVCã©ãããã®çãªè©±ãããã¦ãã®ãæãåºããã®ã§ãèªåãBackboneã使ãæã®ãã¿ã¼ã³ãr7kamuraåã®è¨äºããã¼ã¹ã«æ¸ããªããã¦ã¿ãã > ãµãã¯ã©ä¸¡æ¹ã§åã JavaScript ã®å¤§è¦æ¨¡éçºãè¡ãããã« â Gist https://gist.github.com/1362110 > client-side javascript - ââ¹â¡â¹â http://r7kamura.hatenablog.com/entry/2012/10/18/023629 以ä¸ã®æ§ãªã³ã¼ããæ¸ãããããªãåé·ã ããè¤éãªã¢ããªã ã¨ãããããã®åé·æ§ã¯å¿ è¦ã«ãªãã (ãªãæ¦å¿µãä¼ããããã®è§£èª¬ç¨ã³ã¼ããªã®ã§ãã®ã¾ã¾ããåããªã) Backbone.Model # åå空éã®åæå App = {} App.View = {} App.Model = {}
é²è¦§ä¸ã®æ³¨æ ãã®è¨äºã§å¯¾è±¡ã¨ãã¦ãããã¼ã¸ã§ã³0.5.3ã¯çµæ§å¤ãã®ã§æ³¨æãã¦ãã ããããã®è¨äºã§ããã°ãbindã¯ç¡ããªããç¾å¨ã§ã¯onãlistenToã使ããã¦ãã¾ãã ãã®ä»ã®å²ãã¨æ°ããæ å ±ã¯ Backbone.js Advent Calendar 2012 ãªã©ã«ããã¾ãã ï¼è¿½è¨ããã¾ã§ï¼ ãã¿åãæãå¦ããªãBackbone.js Advent Calendarã§ãããä»åããä½åãã«åãã¦æåä¸å¯§ãªå ¥éè¨äºãæ¸ãã¦ãããã¨æãã¾ãã 以ä¸ã®ããã«æ¸ãé²ãã¦ããäºå®ã§ãã Events View Model Viewã¨Modelã®é£æº Collection Viewã¨Modelã¨Collectionã®é£æº Routerã¨History ãªãããã§æ±ãBackbone.jsã®ãã¼ã¸ã§ã³ã¯0.5.3ã§ãã #Backbone.jså ¥é ãEventsã Backbone.js
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}