https://github.com/tokuhirom/micro_dispatcher.js javascript ç¨ã®ã·ã³ãã«ãª Dispatcher ã«ã¯ããã¤ãããããã©ããæºè¶³ããã·ã³ãã«ãªå®è£ ããªãã£ãã®ã§ã¤ãã£ã(ã¨ããã Caym ã¨ãããªã¬ãªã¬ JS Framework ã®ä¸ã«ãã¾ã£ã¦ãããã®ãã¨ãã ãã)ã ç¹å¾´ã¨ãã¦ã¯ã Dispatcher ã ãã®ã·ã³ãã«ãªå®è£ (æ¬ä½ã¯ããåé·ã«ããã¦ãã¦ã40è¡ç¨åº¦)sinatra çãªã·ã³ãã«ãªè¨æ³ã¨ãã£ãã¨ããã§ããããã 使ãæ¹ã¯ä»¥ä¸ã®ã¨ããã var dispatcher = new MicroDispatcher() dispatcher.register('/', function () { }) dispatcher.register('/member/:name', function (name) { alert
{{#tags}}- {{label}}
{{/tags}}