{"rsdb":{"rid":"153527","subhead":"","postdate":"0","aid":"115352","fid":"55","uid":"1","topic":"1","content":"
\n

\u524d\u8a00<\/h1> \n

\u8bf7\u9884\u7559\u8db3\u591f\u7684\u65f6\u95f4\uff0c\u60a8\u5c06\u770b\u5230\u5927\u91cf\u7684\u6587\u5b57\u63cf\u8ff0\u3002\u4f46\u662f\u76f8\u4fe1\u6211\uff0c\u60a8\u7edd\u5bf9\u503c\u5f97\u82b1\u65f6\u95f4\u5728\u8fd9\u4e9b\u6587\u5b57\u63cf\u8ff0\u4e0a\u9762\u3002\u6211\u5df2\u7ecf\u5c3d\u4e86\u6211\u6700\u5927\u6240\u80fd\u6765\u9610\u8ff0\u5173\u4e8eMVC\u548cMVVM\u5982\u6b64\u8fd9\u822c\u8bbe\u8ba1\u7684\u539f\u56e0\u4ee5\u53ca\u6211\u4eec\u5e94\u8be5\u5982\u4f55\u601d\u8003\u4e00\u4e9b\u76f8\u5173\u7684\u95ee\u9898<\/p> \n

\u8ba9\u6211\u4eec\u4eceMVC\u5f00\u59cb<\/h1> \n

\u8bf4\u8d77MVC\uff0c\u5fc5\u987b\u62ff\u65af\u5766\u798f\u5927\u5b66\u516c\u5f00\u8bfe\u4e0a\u7684\u8fd9\u5e45\u56fe\u6765\u8bf4\u660e\uff0c\u8fd9\u53ef\u4ee5\u8bf4\u662f\u6700\u7ecf\u5178\u548c\u6700\u89c4\u8303\u7684MVC\u6807\u51c6<\/p> \n

\"MVC\"<\/p> \n

\u6240\u4ee5\u770b\u61c2\u8fd9\u5f20\u56fe\uff0c\u4f60\u5c31\u5e94\u8be5\u660e\u767dMVC\u5728iOS\u4e2d\u7684\u5b9e\u73b0\u601d\u8def\u4e86\u3002<\/p> \n

\u4f60\u4e00\u76f4\u5728\u4f7f\u7528MVC\u7684\u601d\u60f3\u53ea\u662f\u4f60\u53ef\u80fd\u6ca1\u6709\u5bdf\u89c9\u5230<\/h2> \n

\u5728\u6211\u4eec\u7740\u624b\u63a2\u7a76MVC\u4e4b\u524d\uff0c\u6709\u4e9b\u4e1c\u897f\u662f\u4f60\u5e94\u8be5\u4e86\u89e3\u7684\uff0c\u867d\u7136\u4f60\u53ef\u80fd\u5df2\u7ecf\u4e86\u89e3\u4e86\uff0c\u4f46\u662f\u8fd9\u91cc\u8fd8\u662f\u8981\u62ff\u51fa\u6765\u8bf4\u4e00\u4e0b\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u5185\u5bb9\u5bf9\u4e8e\u4f60\u7406\u89e3MVC\u662f\u5982\u4f55\u8fd0\u4f5c\u7684\u6709\u5f88\u5927\u7684\u5e2e\u52a9\u3002
\u51e0\u4e4e\u6240\u6709\u7684App\u90fd\u53ea\u5e72\u8fd9\u4e48\u4e00\u4ef6\u4e8b\uff1a\u5c06\u6570\u636e\u5c55\u793a\u7ed9\u7528\u6237\u770b\uff0c\u5e76\u5904\u7406\u7528\u6237\u5bf9\u754c\u9762\u7684\u64cd\u4f5c\u3002
\u5199\u8fc7iOS App\u5f00\u53d1\u7684\u5f00\u53d1\u8005\u90fd\u77e5\u9053\u6211\u4eec\u5927\u91cf\u7684\u64cd\u4f5c\u90fd\u662f\u5728controller\u4e2d\u5199\u5e03\u5c40\u4ee3\u7801\u518d\u628a\u6570\u636e\u663e\u793a\u5230\u89c6\u56fe\u4e0a\u9762\uff0c\u7136\u540e\u5b9e\u73b0\u4e00\u4e9b\u4e13\u95e8\u5904\u7406\u7528\u6237\u64cd\u4f5c\u7684\u903b\u8f91\uff08\u6bd4\u5982\u6309\u94ae\u70b9\u51fb\u4e8b\u4ef6\u7684\u5b9e\u73b0\uff09\u3002
\u8fd9\u91cc\u5b9e\u9645\u4e0a\u4f60\u5df2\u7ecf\u65e0\u5f62\u4e4b\u4e2d\u4f7f\u7528\u4e86MVC\u7684\u601d\u60f3\u4e86\uff1a\u4e00\u53e5\u8bdd\u63cf\u8ff0\u5c31\u662fController\u8d1f\u8d23\u5c06Model\u7684\u6570\u636e\u7528View\u663e\u793a\u51fa\u6765\uff0c\u6362\u53e5\u8bdd\u8bf4\u5c31\u662f\u5728Controller\u91cc\u9762\u628aModel\u7684\u6570\u636e\u8d4b\u503c\u7ed9View\uff0c\u6bd4\u5982\u5728controller\u4e2d\u5199self.label.text = self.data[@\u201dtitle\u201d]\uff0c\u53ea\u662f\u8fd8\u6ca1\u6709\u523b\u610f\u5efa\u4e00\u4e2aModel\u7c7b\u51fa\u6765\u800c\u5df2\u3002<\/p> \n

MVC\u662f\u5982\u4f55\u8fdb\u884c\u5de5\u4f5c\u7684<\/h2> \n

\u7b80\uff08xiang\uff09\u5355\uff08xi\uff09\u89e3\u91ca\u4e00\u4e0bMVC\u6240\u4ee3\u8868\u7684\u610f\u601d\uff08\u7f51\u4e0a\u968f\u5904\u53ef\u89c1\uff09<\/p> \n

\n

M\uff1aModel\uff0c\u6570\u636e\u6a21\u578b\uff0c\u6bd4\u5982\u6211\u4eec\u4eba\u7c7b\u6709\u4e00\u53cc\u624b\uff0c\u4e00\u53cc\u773c\u775b\uff0c\u4e00\u4e2a\u8111\u888b\uff0c\u6ca1\u6709\u5c3e\u5df4\uff0c\u8fd9\u5c31\u662f\u6a21\u578b\uff0cModel\u5b9a\u4e49\u4e86\u8fd9\u4e2a\u6a21\u5757\u7684\u6570\u636e\u6a21\u578b\u3002\u5728\u4ee3\u7801\u4e2d\u4f53\u73b0\u4e3a\u6570\u636e\u7ba1\u7406\u8005\uff0cModel\u8d1f\u8d23\u5bf9\u6570\u636e\u8fdb\u884c\u83b7\u53d6\u53ca\u5b58\u653e\u3002\u6570\u636e\u4e0d\u53ef\u80fd\u51ed\u7a7a\u751f\u6210\u7684\uff0c\u8981\u4e48\u662f\u4ece\u670d\u52a1\u5668\u4e0a\u9762\u83b7\u53d6\u5230\u7684\u6570\u636e\uff0c\u8981\u4e48\u662f\u672c\u5730\u6570\u636e\u5e93<\/a><\/a>\u4e2d\u7684\u6570\u636e\uff0c\u4e5f\u6709\u53ef\u80fd\u662f\u7528\u6237\u5728UI\u4e0a\u586b\u5199\u7684\u8868\u5355\u5373\u5c06\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u4e0a\u9762\u5b58\u653e\uff0c\u6240\u4ee5\u9700\u8981\u6709\u6570\u636e\u6765\u6e90\u3002\u65e2\u7136Model\u662f\u6570\u636e\u7ba1\u7406\u8005\uff0c\u5219\u81ea\u7136\u7531\u5b83\u6765\u8d1f\u8d23\u83b7\u53d6\u6570\u636e\u3002Controller\u4e0d\u9700\u8981\u5173\u5fc3Model\u662f\u5982\u4f55\u62ff\u5230\u6570\u636e\u7684\uff0c\u53ea\u7ba1\u8c03\u7528\u5c31\u884c\u4e86\u3002\u6570\u636e\u5b58\u653e\u7684\u5730\u65b9\u662f\u5728Model\uff0c\u800c\u4f7f\u7528\u6570\u636e\u7684\u5730\u65b9\u662f\u5728Controller\uff0c\u6240\u4ee5Model\u5e94\u8be5\u63d0\u4f9b\u63a5\u53e3\u4f9bcontroller\u8bbf\u95ee\u5176\u5b58\u653e\u7684\u6570\u636e\uff08\u901a\u5e38\u901a\u8fc7.h\u91cc\u9762\u7684\u53ea\u8bfb\u5c5e\u6027\uff09\u3002<\/p> \n

V\uff1aView\uff0c\u89c6\u56fe\uff0c\u7b80\u5355\u6765\u8bf4\uff0c\u5c31\u662f\u6211\u4eec\u5728\u754c\u9762\u4e0a\u770b\u89c1\u7684\u4e00\u5207\u3002\u5927\u591a\u6570\u60c5\u51b5\u90fd\u662f\u7ee7\u627f\u81eaUIView\u7684\u7c7b\u7684\u5bf9\u8c61\uff0c\u800c\u6709\u65f6\u5019\u5219\u4e0d\u662f\u76f4\u63a5\u7ee7\u627f\u81eaUIView\uff0c\u6709\u65f6\u5019\u4f1a\u76f4\u63a5\u7528CoreAnimation\u751a\u81f3CoreGraphics\u6765\u7ed8\u5236\u5185\u5bb9\uff0c\u4f46\u8fd9\u4e9b\u4e1c\u897f\u7edf\u7edf\u90fd\u5f52\u7ed3\u4e3aMVC\u4e2d\u7684View\u3002\u5b83\u4eec\u6709\u4e00\u90e8\u5206\u662f\u6211\u4eecUI\u5b9a\u6b7b\u7684\uff0c\u4e5f\u5c31\u662f\u4e0d\u4f1a\u6839\u636e\u6570\u636e\u6765\u66f4\u65b0\u663e\u793a\u7684\uff0c\u6bd4\u5982\u4e00\u4e9bLogo\u56fe\u7247\u554a\uff0c\u8fd9\u91cc\u6709\u4e2a\u6309\u94ae\u554a\uff0c\u90a3\u91cc\u6709\u4e2a\u8f93\u5165\u6846\u554a\uff0c\u4e00\u4e9b\u663e\u793a\u7279\u5b9a\u5185\u5bb9\u7684label\u554a\u7b49\u7b49\uff1b\u6709\u4e00\u90e8\u5206\u662f\u4f1a\u6839\u636e\u6570\u636e\u6765\u663e\u793a\u5185\u5bb9\u7684\uff0c\u6bd4\u5982tableView\u6765\u663e\u793a\u597d\u53cb\u5217\u8868\u554a\uff0c\u8fd9\u4e2atableView\u7684\u663e\u793a\u5185\u5bb9\u80af\u5b9a\u662f\u6839\u636e\u6570\u636e\u6765\u663e\u793a\u7684\u3002\u6211\u4eec\u4f7f\u7528MVC\u89e3\u51b3\u95ee\u9898\u7684\u65f6\u5019\uff0c\u901a\u5e38\u662f\u89e3\u51b3\u8fd9\u4e9b\u6839\u636e\u6570\u636e\u6765\u663e\u793a\u5185\u5bb9\u7684\u89c6\u56fe\u3002\u8fd9\u91cc\u8981\u63d0\u4e2a\u9192\uff1aMVC\u867d\u7136\u770b\u4f3c\u628a\u6a21\u5757\u5206\u4e3a\u4e86\u4e09\u90e8\u5206\uff0c\u4f46\u662f\u5e76\u4e0d\u662f\u8bf4\u4e00\u4e2a\u6a21\u5757\u5c31\u8981\u4e00\u5b9a\u5efa\u4e09\u4e2a\u7c7b\u51fa\u6765\uff0c\u6bd4\u5982\u8054\u7cfb\u4eba\u5217\u8868\uff08ContactsList\uff09\u6a21\u5757\uff0c\u4e00\u5b9a\u4f1a\u6709\u7684\u80af\u5b9a\u662fContactsListViewController\uff0c\u7136\u540e\u6211\u4eec\u4f7f\u7528MVC\u6765\u4f5c\u4e3a\u5185\u90e8\u7684\u6846\u67b6\uff0c\u5219\u9700\u8981\u521b\u5efaContactsListModel\u7c7b\uff0c\u63a5\u4e0b\u6765\u4f1a\u6709\u5c11\u5e74\u7ee7\u7eed\u521b\u5efaContactsListView\uff0c\u4ed6\u8ba4\u4e3a\u8fd9\u624d\u662fMVC\uff0c\u6709\u4e09\u4e2a\u7c7b\u5206\u522b\u662fXXXModel\u3001XXXController\u3001XXXView\uff0c\u8fd9\u5c31\u5927\u9519\u7279\u9519\u4e86\uff0c\u4f60\u4eec\u5728Controller\u4e2d\u4f7f\u7528\u7684UILabel\u3001UITableView\u7b49\u7b49\u5c31\u662fMVC\u4e2d\u7684View\u4e86\uff0c\u4e0d\u8981\u518d\u4e13\u95e8\u5efa\u4e00\u4e2aXXXXView\u51fa\u6765\uff0c\u5b8c\u5168\u662f\u6ca1\u4e8b\u627e\u4e8b\u591a\u6b64\u4e00\u4e3e\u3002<\/p> \n

C\uff1aController\uff0c\u6700\u719f\u6089\u5374\u53c8\u6700\u62bd\u8c61\u7684\u4e00\u4e2a\u4e1c\u897f\u3002\u4e4b\u6240\u4ee5\u719f\u6089\uff0c\u6211\u4eec\u5728\u4f7f\u7528UIKit\u8fdb\u884c\u5f00\u53d1\u4e2d\u6211\u6562\u8bf4\u662f\u4f60\u6253\u4ea4\u9053\u6700\u591a\u7684\u7c7b\uff1aUIViewController\u3002UIKit\u6846\u67b6\u79bb\u4e0d\u5f00UIViewController\uff0c\u5f53\u7136\u4f60\u5b8c\u5168\u53ef\u4ee5\u4f7f\u7528UIView\u6765\u5b8c\u6210\u6240\u6709\u672c\u8be5\u7531Controller\u5b8c\u6210\u7684\u4e8b\u60c5\uff0c\u8fd9\u662f\u5927\u9006\u4e0d\u9053\u7684\uff0c\u56e0\u4e3a\u8fd9\u6837\u505a\u5c06\u4f1a\u4f7f\u4f60\u7684\u6574\u4e2a\u9879\u76ee\u4ee3\u7801\u4e00\u56e2\u7cdf\uff0c\u5e76\u4e14\u5b8c\u7f8e\u7684\u8fdd\u80cc\u4e86\u9762\u5411\u5bf9\u8c61\u7684\u601d\u60f3\uff1a\u5404\u53f8\u5176\u804c\u3002\u8fd9\u91cc\u5927\u5bb6\u4e00\u5b9a\u8981\u77e5\u9053UIViewController\u7a76\u7adf\u5e94\u8be5\u505a\u4e9b\u4ec0\u4e48\u4e8b\uff0c\u5b9e\u9645\u4e0a\u5c31\u662fAPI\u63d0\u4f9b\u51fa\u6765\u7684\u63a5\u53e3\uff1aself.view\u7528\u6765\u4f5c\u4e3a\u6240\u6709\u89c6\u56fe\u7684\u5bb9\u5668\uff1b\u7ba1\u7406\u81ea\u5df1\u7684\u751f\u547d\u5468\u671f\uff1bcontroller\u4e4b\u95f4\u7684\u8f6c\u573a\uff1bcontroller\u5bb9\u5668\u3002\u8fd9\u662fController\u7684\u672c\u804c\u5de5\u4f5c\uff0c\u7136\u800c\u5b83\u5f80\u5f80\u8fd8\u9700\u8981\u627f\u62c5\u8d77MVC\u4e2d\u7684\u6570\u636e\u548c\u89c6\u56fe\u7684\u534f\u8c03\u8005\uff0c\u4e5f\u5c31\u662f\u5728Controller\u91cc\u9762\u628aModel\u7684\u6570\u636e\u8d4b\u503c\u7ed9View\u6765\u663e\u793a\uff08\u6216\u8005\u662fView\u63a5\u6536\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u7136\u540e\u7531Controller\u628a\u8fd9\u4e9b\u6570\u636e\u4f20\u7ed9Model\u6765\u4fdd\u5b58\u5230\u672c\u5730\u6216\u8005\u4e0a\u4f20\u5230\u670d\u52a1\u5668\uff09\u3002<\/p> \n <\/blockquote> \n

\u7efc\u5408\u4ee5\u4e0a\u5185\u5bb9\uff0c\u5b9e\u9645\u4e0a\u4f60\u5e94\u8be5\u53ef\u4ee5\u901a\u8fc7\u9762\u5411\u5bf9\u8c61\u7684\u57fa\u672c\u601d\u60f3\u6765\u63a8\u5bfc\u51facontroller\u51fa\u73b0\u7684\u539f\u56e0\uff1a\u6211\u4eec\u6240\u6709\u7684App\u90fd\u662f\u754c\u9762\u548c\u6570\u636e\u7684\u4ea4\u4e92\uff0c\u6240\u4ee5\u9700\u8981\u7c7b\u6765\u8fdb\u884c\u754c\u9762\u7684\u7ed8\u5236\uff0c\u4e8e\u662f\u51fa\u73b0\u4e86View\uff0c\u9700\u8981\u7c7b\u6765\u7ba1\u7406\u6570\u636e\u4e8e\u662f\u51fa\u73b0\u4e86Model\u3002\u6211\u4eec\u8bbe\u8ba1\u7684View\u5e94\u8be5\u80fd\u663e\u793a\u4efb\u610f\u7684\u5185\u5bb9\u6bd4\u5982UILabel\u663e\u793a\u7684\u6587\u5b57\u5e94\u8be5\u662f\u4efb\u610f\u7684\u800c\u4e0d\u53ea\u662f\u67d0\u4e2a\u7279\u5b9aModel\u7684\u5185\u5bb9\uff0c\u6240\u4ee5\u6211\u4eec\u4e0d\u5e94\u8be5\u5728View\u7684\u5b9e\u73b0\u4e2d\u53bb\u5199\u548cModel\u76f8\u5173\u7684\u4efb\u4f55\u4ee3\u7801\uff0c\u5982\u679c\u8fd9\u6837\u505a\u4e86\uff0c\u90a3\u4e48View\u7684\u53ef\u6269\u5c55\u6027\u5c31\u76f8\u5f53\u4f4e\u4e86\u3002\u800cModel\u53ea\u662f\u8d1f\u8d23\u5904\u7406\u6570\u636e\u7684\uff0c\u5b83\u6839\u672c\u4e0d\u77e5\u9053\u6570\u636e\u5230\u65f6\u5019\u4f1a\u62ff\u53bb\u5e72\u5565\uff0c\u53ef\u80fd\u62ff\u53bb\u4f5c\u4e3a\u7b97\u6cd5\u567c\u91cc\u556a\u5566\u53bb\u4e86\uff0c\u53ef\u80fd\u62ff\u53bb\u663e\u793a\u7ed9\u7528\u6237\u4e86\uff0c\u5b83\u65e2\u7136\u65e0\u6cd5\u63a5\u6536\u7528\u6237\u7684\u4ea4\u4e92\uff0c\u5b83\u5c31\u4e0d\u5e94\u8be5\u53bb\u7ba1\u548c\u89c6\u56fe\u76f8\u5173\u7684\u4efb\u4f55\u4fe1\u606f\uff0c\u6240\u4ee5Model\u4e2d\u4e0d\u5e94\u8be5\u5199\u4efb\u4f55View\u76f8\u5173\u4ee3\u7801\u3002\u7136\u800c\u6211\u4eec\u7684\u6570\u636e\u548c\u754c\u9762\u5e94\u8be5\u540c\u6b65\uff0c\u4e5f\u5c31\u662f\u4e00\u5b9a\u8981\u6709\u4e2a\u5730\u65b9\u8981\u628aModel\u7684\u6570\u636e\u8d4b\u503c\u7ed9View\uff0c\u800cModel\u5185\u90e8\u548cView\u7684\u5185\u90e8\u90fd\u4e0d\u53ef\u80fd\u53bb\u5199\u8fd9\u6837\u7684\u4ee3\u7801\uff0c\u6240\u4ee5\u53ea\u80fd\u65b0\u521b\u9020\u4e00\u4e2a\u7c7b\u51fa\u6765\u4e86\uff0c\u53d6\u540d\u4e3aController\u3002\u5b83\u88abUIKit\u9010\u6e10\u5b8c\u5584\u6210\u4e86\u6211\u4eec\u73b0\u5728\u4f7f\u7528\u7684UIViewController\u3002<\/p> \n

\u770b\u56fe\u8bf4\u8bdd<\/h2> \n

\u4f60\u8981\u95ee\u6211\u4ee5\u4e0a\u8fd9\u4e48\u4e00\u5927\u5806\u4e1c\u897f\u6211\u662f\u600e\u4e48\u77e5\u9053\u7684\uff1f\u6211\u5c31\u5b8c\u6210\u4e86\u4e00\u6b21\u770b\u56fe\u8bf4\u8bdd\u800c\u5df2\uff0c\u6211\u4eec\u7ec8\u4e8e\u8981\u5f00\u59cb\u8bb2\u89e3\u8fd9\u5f20\u56fe\u4e86\uff0c\u4e3a\u4e86\u66f4\u597d\u7684\u89c2\u770b\u4f53\u9a8c\uff0c\u6211\u518d\u6b21\u5411\u60a8\u5448\u73b0\u51fa\u8fd9\u5f20\u56fe\uff0c\u8fd9\u6837\u4f60\u5c31\u4e0d\u9700\u8981\u5f80\u4e0a\u9762\u7ffb\u4e00\u5927\u6bb5\u5185\u5bb9\u4e86\u3002<\/p> \n

\"MVC\"<\/p> \n

duang!<\/p> \n

\u5e9f\u8bdd\u4e0d\u591a\u8bf4\u4e86\uff0c\u8fd9\u5f20\u56fe\u628aMVC\u5206\u4e3a\u4e09\u4e2a\u72ec\u7acb\u7684\u533a\u57df\uff0c\u5e76\u4e14\u4e2d\u95f4\u7528\u4e86\u4e00\u4e9b\u7ebf\u6765\u9694\u5f00\u3002\u5f88\u6709\u610f\u601d\u7684\u8bbe\u8ba1\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u7ebf\u4f3c\u4e4e\u51fa\u73b0\u5728\u4e86\u9a7e\u6821\u79d1\u76ee\u4e00\u7684\u5185\u5bb9\u4e2d\uff0c\u4f60\u77a7C\u548cV\u4ee5\u53caC\u548cM\u4e4b\u95f4\u7684\u767d\u7ebf\uff0c\u4e00\u90e8\u5206\u662f\u865a\u7ebf\u4e00\u90e8\u5206\u662f\u5b9e\u7ebf\u5bf9\u5427\uff0c\u8fd9\u5c31\u8868\u660e\u4e86\u5f15\u7528\u5173\u7cfb\uff1aC\u53ef\u4ee5\u76f4\u63a5\u5f15\u7528V\u548cM\uff0c\u800cV\u548cM\u4e0d\u80fd\u76f4\u63a5\u5f15\u7528C\uff0c\u81f3\u5c11\u4f60\u4e0d\u80fd\u663e\u5f0f\u7684\u5728V\u548cM\u7684\u4ee3\u7801\u4e2d\u53bb\u5199\u548cC\u76f8\u5173\u7684\u4efb\u4f55\u4ee3\u7801\uff0c\u800cV\u548cM\u4e4b\u95f4\u5219\u662f\u53cc\u9ec4\u7ebf\uff0c\u6ca1\u9519\uff0c\u5b83\u4eec\u4fe9\u8c01\u4e5f\u4e0d\u80fd\u5f15\u7528\u8c01\uff0c\u4f60\u65e2\u4e0d\u80fd\u5728M\u91cc\u9762\u5199V\uff0c\u4e5f\u4e0d\u80fd\u5728V\u91cc\u9762\u5199M\u3002\u54e6\uff0c\u4e0a\u9762\u7684\u63cf\u8ff0\u6709\u70b9\u5c0f\u5c0f\u7684\u95ee\u9898\uff0c\u4f60\u4e0d\u662f\u201c\u4e0d\u80fd\u201d\u8fd9\u6837\u5199\uff0c\u800c\u662f\u201c\u4e0d\u5e94\u8be5\u201d\u8fd9\u6837\u5199\uff0c\u6ca1\u4eba\u80fd\u963b\u6b62\u4f60\u5728\u5199\u4ee3\u7801\u7684\u65f6\u5019\u5728\u4e00\u4e2aM\u91cc\u9762\u53bb\u5199V\uff0c\u4f46\u662f\u4e00\u65e6\u4f60\u8fd9\u6837\u505a\u4e86\uff0c\u90a3\u4e48\u4f60\u5c31\u8fdd\u80cc\u4e86MVC\u7684\u89c4\u8303\uff0c\u4f60\u5c31\u4e0d\u662f\u5728\u4f7f\u7528MVC\u4e86\uff0c\u6240\u4ee5\u8fd9\u7b97\u662fMVC\u7684\u4e00\u4e2a\u5fc5\u8981\u6761\u4ef6\uff1a\u4f7f\u7528MVC \u2013> M\u91cc\u9762\u6ca1\u6709V\u7684\u4ee3\u7801\u3002\u6240\u4ee5M\u91cc\u9762\u6ca1\u6709V\u7684\u4ee3\u7801\u5c31\u662f\u4f7f\u7528MVC\u7684\u5fc5\u8981\u6761\u4ef6\uff0c\u5982\u679cP->Q\uff0c\u90a3\u4e48~Q->~P\uff0c\u521d\u4e2d\u8fd8\u662f\u9ad8\u4e2d\u6570\u5b66\u8bb2\u8fc7\u5427\uff0c\u5982\u679c\u4f60\u5728M\u91cc\u9762\u5199\u4e86V\u7684\u4ee3\u7801\uff0c\u90a3\u4e48\u4f60\u5c31\u4e0d\u662f\u5728\u4f7f\u7528MVC","orderid":"0","title":"MVC\u548cMVVM\u8be6\u89e3(\u4e00)","smalltitle":"","mid":"0","fname":"windows\u7f16\u7a0b\u57fa\u7840","special_id":"0","bak_id":"0","info":"0","hits":"957","pages":"2","comments":"0","posttime":"2016-07-13 22:02:58","list":"1468418578","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"http:\/\/g.hiphotos.baidu.com\/image\/h%3D300\/sign=bd5cccb88b5494ee982209191df4e0e1\/c2cec3fdfc039245980aac088094a4c27d1e257d.jpg","ispic":"1","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"MVC<\/A> MVVM<\/A> \u8be6\u89e3<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"14.17.22.31","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"MVC\u548cMVVM\u8be6\u89e3","lastview":"1500604945","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}