大ããMVCã¨å°ããMVC èªå¼ãæããã«æ¸ã
MVCã£ã¦ã大æµã®å ´åãµã¼ããµã¤ãã§ã®å®è£ ã®åãæ¹ã®äºãè¨ã£ã¦ãã®ãå¤ãæ°ãããããã§ããµã¼ããµã¤ããä½ã£ã¦ã人ã ã®å¤ãã¯ãUIã«é¢ãã¦ã¯ãã¶ã¤ãã¼ãhogehogeã¨ããã¿ã³ããã¯ã¼ã¯ã»ãã¨ãè¨ã£ã¦ãå ´åãå¤ãæ°ããããã ãã©ãå®éã©ããªãã ããï¼
ä¿åãå¿ è¦ãªããã°ããã©ã¦ã¶å ã®JSã ãã§ãã¼ãã©ãã£ãã¯ï¼ååDLã¯é¤ãï¼ã§ããªãã®ãã¨ãåºæ¥ãã¨æãããåã£ãã¨ããã¯ãããªã£ã¦ããã¨æããMVCããµã¼ããµã¤ãã¨ã¯ã©ã¤ã¢ã³ããµã¤ãã§åãã¦èããã¨ãå®è£ è ã®ãªã½ã¼ã¹ããåãã¼ã¿ã®ç¥çµåå ·åã ã£ããã¨ããã®ãä¸æã«èª¿æ´åºæ¥ãã¨æããã ãã©ã©ããªãã ãï¼ã¢ãã«ã«ãã¸ãã¯ã¦ããçããå¦ãã³ã³ããã¼ã©ãé å¼µãã¹ãã¨ãããããããã¹ãããã°ã¢ã¼ãã³ã¿ã¤ã§ããã¨ãããè¨ãã¬ãã«ãããªãæ°ãããã
ãµã¼ãã¼ããåçã«æ¸¡ãé¨åã¯ãã¹ã¦JSONã«ãã¦ãããããµã¼ãã¼å´ã§ã¯æçµã¢ã¦ããããï¼Viewï¼ã«ããããã³ãã¬ã¼ãã¨ã³ã¸ã³ã®ã¹ãã¼ãã¨ãé¢ä¿ãªããªããJSONç´ æãJSãã¹ã¿ã¼ããã³ãã³é ç½®ãã¦ãããã¯ã©ã¤ã¢ã³ãã®CPUåãã¦ã¬ã³ããªã³ã°ãããDLãããéçHTMLã«ã¯ãbodyã¿ã°ã¨JSå¼ã³åºãã ããæ¸ãã¦ãããããã ãã§ããæ°ãããã
大ããªMVCï¼ãµã¼ãã¼ãµã¤ãï¼ã¨å°ããªMVCï¼ãã©ã¦ã¶ãµã¤ãï¼ã®é£æºã§ããµã¼ãå®è£ è ã¨JSå®è£ è ã¯ãURLã¨ããçºæ³¨æ¸ã¨JSONã¨ããç´åæ¸ã®ä¼è©±ã ãã§çµãããã¦ããªä¸çã«ãäºãä½ããã¨æããã¢ããªä½ãã®ããã©ããããã©ãã¦ã¼ã¶ãããã¦ã¿ãã°ããããåãã¢ããªã§ãå¤æ´è¦æ±ãéããããï¼å¤æ´ã«å¯¾å¿ããããï¼æ°ããããã ãã©ã©ããªãã ããï¼ï¼ããã©ãããã¨ãããªããã対å¿ããããã£ã¦ãããããï¼
ã»ãã¥ãªãã£ã¼ã®äºã¯è¯ãããããªãã®ã§éæããªäºã«ãªã£ã¦ãããç¥ããªããã»ã»ã»