{"id":545028,"date":"2021-11-02T20:15:53","date_gmt":"2021-11-02T12:15:53","guid":{"rendered":"http:\/\/4563.org\/?p=545028"},"modified":"2021-11-02T20:15:53","modified_gmt":"2021-11-02T12:15:53","slug":"mvc%e5%b7%a5%e4%bd%9c%e5%8e%9f%e7%90%86%ef%bc%8c%e5%a4%a7%e5%89%8d%e7%ab%af%e7%9a%84%e8%b5%b6%e7%b4%a7%e6%bb%9a","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=545028","title":{"rendered":"mvc\u5de5\u4f5c\u539f\u7406\uff0c\u5927\u524d\u7aef\u7684\u8d76\u7d27\u6eda"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>kaleok<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>mvc\u5de5\u4f5c\u539f\u7406\uff0c\u5927\u524d\u7aef\u7684\u8d76\u7d27\u6eda<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 kaleok \u4e8e 2021-11-2 18:11 \u7f16\u8f91 <\/p>\n<p> \u67d0\u67d0php\u6846\u67b6\u662f\u8fd0\u884c\u5728php CGI\u6a21\u5f0f\u4e0b\u7684\u7f51\u9875\u9879\u76ee\u5f00\u53d1\u6846\u67b6\uff0c\u91c7\u7528\u6d41\u884c\u7684php\u9762\u5411\u5bf9\u8c61\u5f00\u53d1\uff0cmvc\u4e09\u4e2a\u6838\u5fc3\u7c7b\u67b6\u6784\u7684\u5355\u5165\u53e3\u5f00\u53d1\u6846\u67b6\u3002<\/p>\n<p>  \u5728mvc\u67b6\u6784\u4e2d\uff0ccontroller\u63a7\u5236\u5668\u7684\u89d2\u8272\u662f\u8d1f\u8d23\u8bf7\u6c42\u8def\u5f84\u7684\u8f6c\u6362\uff0c\u8c03\u7528\u5bf9\u5e94\u7684\u63a7\u5236\u5668\u5b9e\u4f8b\u5316\u4e3a\u5bf9\u8c61\u540e\uff0c\u6fc0\u6d3b\u5176\u4e2d\u7684\u6307\u5b9a\u65b9\u6cd5\u54cd\u5e94\u7528\u6237\u8bf7\u6c42\u7684\u3002<\/p>\n<p>  \u6240\u4ee5\u6211\u4eec\u5927\u591a\u6570\u7684\u5f00\u53d1\u4ee3\u7801\u90fd\u662f\u5728\u7f16\u5199\u63a7\u5236\u5668\u7c7b\u7684\u65b9\u6cd5\u5185\u5bb9\u3002\u9700\u8981\u7406\u89e3\u7684\u662f\uff0c\u5f53\u7528\u6237\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u4e00\u4e2a\u8def\u5f84\u65f6\uff0c\u5b9e\u9645\u4e0a\u5c31\u662f\u6839\u636e\u8def\u5f84\u627e\u5230\u5bf9\u5e94\u7684\u63a7\u5236\u5668\u65b9\u6cd5\u5b9e\u4f8b\u5316\u4e3a\u5bf9\u8c61\u7684\u8fc7\u7a0b\u3002\u5b9e\u4f8b\u5316\u7684\u5177\u4f53\u4ee3\u7801\u662f\u5199\u5728\u6846\u67b6\u6838\u5fc3\u7684\uff0c\u7531\u6838\u5fc3\u6839\u636e\u8bf7\u6c42\u8def\u5f84\u9488\u5bf9\u6027\u7684\u5b9e\u4f8b\u5316\u5bf9\u5e94\u63a7\u5236\u5668\u7c7b\u548c\u8c03\u7528\u5bf9\u8c61\u4e2d\u7684\u65b9\u6cd5\u800c\u5df2\u3002\u6240\u4ee5\u539f\u7406\u4e0a\uff0c\u4e00\u4e2a\u8d85\u94fe\u63a5\u8bf7\u6c42\u53ea\u80fd\u8bf7\u6c42\u4e00\u4e2a\u63a7\u5236\u5668\u65b9\u6cd5\uff0c\u5f53\u7136\u6839\u636e\u4e1a\u52a1\u9700\u8981\u8be5\u65b9\u6cd5\u53ef\u4ee5\u5185\u90e8\u8c03\u7528\u66f4\u591a\u7684\u5176\u4ed6\u65b9\u6cd5\u7b49\u7b49\u3002<\/p>\n<p>  \u4e5f\u5c31\u662f\u8bf4\uff0c\u6211\u4eec\u5728\u5f00\u53d1\u4ee3\u7801\u65f6\uff0c\u4f7f\u7528$this\u5173\u952e\u5b57\u8c03\u53d6\u7684\u4efb\u610f\u65b9\u6cd5\uff0c\u90fd\u662f\u5728\u672a\u5b9e\u4f8b\u5316\u4e4b\u524d\u7684\u63a7\u5236\u5668\u6838\u5fc3\u7c7b\u4e2d\u7684\u65b9\u6cd5\u3002\u800c\u63a7\u5236\u7c7b\u88ab\u5b9e\u4f8b\u5316\u662f\u6839\u636e\u7528\u6237\u53d1\u8d77\u8bf7\u6c42\u7684\u8d85\u94fe\u63a5\u9488\u5bf9\u6027\u5b9e\u4f8b\u5316\u63a7\u5236\u5668\u7c7b\u8bfb\u53d6\u5bf9\u8c61\u5f53\u4e2d\u7279\u5b9a\u65b9\u6cd5\u5b9e\u73b0\u4e1a\u52a1\u903b\u8f91\u7684\u3002<\/p>\n<p>  \u6240\u4ee5\uff0c\u5728\u5f00\u53d1\u4ee3\u7801\u8fc7\u7a0b\u4e2d\uff0c\u4e00\u4e2a\u65b9**\u5426\u80fd\u88ab\u8d85\u94fe\u63a5\u8bf7\u6c42\u8bfb\u53d6\u5f97\u5230\uff0c\u5173\u952e\u70b9\u5c31\u662f\u4e0a\u9762\u7684\u7406\u89e3\uff0c\u5982\u679c\u7406\u89e3\u4e86\u4e00\u4e2a\u8d85\u94fe\u63a5\u5c31\u662f\u4e00\u4e2a\u5b9e\u4f8b\u5316\u63a7\u5236\u5668\u65b9\u6cd5\u7684\u64cd\u4f5c\uff0c\u90a3\u4e48\u5982\u679c\u8be5\u65b9\u6cd5\u9700\u8981\u88ab\u7528\u6237\u8bbf\u95ee\u5230\uff0c\u5219\u5fc5\u7136\u662fpublic\u4fee\u9970\u7b26\u7684\u516c\u5f00\u653e\u65b9\u6cd5\uff0c\u800cprivate protected\u4fee\u9970\u7b26\u7684\u65b9\u6cd5\uff0c\u662f\u5b9e\u4f8b\u5316\u5bf9\u8c61\u65e0\u6cd5\u76f4\u63a5\u8bfb\u53d6\u7684\u3002\u53ea\u80fd\u5728\u672a\u5b9e\u4f8b\u5316\u7684\u4ee3\u7801\u7f16\u5199\u4e2d\uff0c\u4f7f\u7528$this\u5173\u952e\u5b57\u5185\u90e8\u8c03\u7528\u800c\u5df2\u3002<\/p>\n<p>  \u5145\u5206\u7406\u89e3\u4e86\u5176\u4e2d\u539f\u7406\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5f88\u597d\u7684\u89c4\u5212\u81ea\u5df1\u54ea\u4e9b\u63a7\u5236\u5668\u65b9\u6cd5\u63d0\u4f9b\u8d85\u94fe\u63a5\u8bbf\u95ee\uff0c\u54ea\u4e9b\u65b9\u6cd5\u53ea\u80fd\u5176\u4ed6\u63a7\u5236\u5668\u65b9\u6cd5\u5185\u90e8\u8c03\u7528\uff0c\u54ea\u4e9b\u65b9\u6cd5\u53ea\u80fd\u672c\u7c7b\u63a7\u5236\u5668\u8c03\u7528\u4e86\u3002<\/p>\n<p>  \u5728mvc\u67b6\u6784\u4e2d\uff0cmodel\u6a21\u578b\u7c7b\u7684\u89d2\u8272\u662f\u4e0e\u6570\u636e\u5e93\u4e1a\u52a1\u76f8\u5173\u7684\u6838\u5fc3\u7c7b\u3002\u5176\u53ea\u80fd\u5728\u63a7\u5236\u5668\u4e2d\u88ab\u5f00\u53d1\u8005\u76f4\u63a5\u5b9e\u4f8b\u5316\u4f7f\u7528\u3002\u6bd4\u5982 $db = M();\u4e3a\u672c\u6846\u67b6\u6700\u7b80\u5355\u76f4\u63a5\u7684\u5b9e\u4f8b\u5316\u4e00\u4e2a\u6838\u5fc3\u6a21\u578b\u7c7b\u7684\u65b9\u5f0f\u3002<\/p>\n<p>  \u4f46\u8981\u7406\u89e3\u5230\uff1a\u6a21\u578b\u7c7b\u662f\u6846\u67b6\u6838\u5fc3\u63d0\u4f9b\u7684\uff0c\u4e3b\u8981\u76ee\u7684\u5c31\u662f\u5728\u89c4\u8303\u5f00\u53d1\u8005\u7f16\u5199sql\u8bed\u53e5\u3002\u4ee5\u53ca\u9632\u6b62sql\u6ce8\u5165\u7b49\u4e3b\u8981\u76ee\u7684\u3002\u6240\u4ee5\u5982\u679c\u53ea\u662f\u7b80\u5355\u7684CURD\u64cd\u4f5c\uff0c\u63a8\u8350\u76f4\u63a5\u5b9e\u4f8b\u5316\u6838\u5fc3\u6a21\u578b\u7c7b\u5373\u53ef\u3002\u4e0d\u9700\u8981\u81ea\u5df1\u7f16\u5199\u81ea\u5b9a\u4e49\u6a21\u578b\u7c7b\u3002<\/p>\n<p>  \u800c\u5982\u679c\u9700\u8981\u590d\u6742\u7684\u5173\u8054\u67e5\u8be2\uff0c\u4ee5\u53ca\u5165\u5e93\u524d\u7684\u8868\u5355\u9a8c\u8bc1\u7b49\u7b49\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e00\u4e2a\u6a21\u578b\u7c7b\uff0c\u7ee7\u627f\u4e8e\u6838\u5fc3\u6a21\u578b\u7c7b\u5373\u53ef\u3002<\/p>\n<p>  \u4e5f\u5c31\u662f\u81ea\u5b9a\u4e49\u6a21\u578b\u7c7b\u7684\u7f16\u5199\u662f\u53ef\u9009\u7684\u3002\u4e0d\u63a8\u8350\u5f00\u53d1\u8005\u76f4\u63a5\u7f16\u5199\u539f\u751fsql\u8bed\u53e5\u8bfb\u53d6\u6570\u636e\u5e93\u8d44\u6e90\u3002\u539f\u56e0\u5df2\u7ecf\u5728php\u5de5\u4f5c\u6a21\u5f0f\u7ae0\u8282\u4e2d\u8bb2\u89e3\uff0c\u5927\u591a\u6570\u9879\u76ee\u7684\u74f6\u9888\u4e0d\u5728nginx\u548cphp\uff0c\u800c\u662f\u5728\u4e0d\u89c4\u8303\u7684sql\u8bed\u53e5\uff0c\u4ee5\u53ca\u4e0d\u5408\u7406\u7684\u6570\u636e\u5e93\u7d22\u5f15\u5bfc\u81f4\u7684\u3002<\/p>\n<p>  \u5728mvc\u67b6\u6784\u4e2d\uff0cview\u89c6\u56fe\u7c7b\uff1a\u5b9e\u9645\u4e0a\u5f53\u524d\u4e3b\u6d41\u524d\u540e\u7aef\u5206\u79bb\u7684\u9879\u76ee\uff0c\u4f8b\u5982\u91c7\u7528vue+php\u7684\u9879\u76ee\uff0cmimiphp\u6846\u67b6\u7684\u5de6\u53f3\u4e3b\u8981\u662f\u63d0\u4f9bjson\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u6570\u636e\u7ed9\u524d\u7aefvue\u81ea\u884c\u6e32\u67d3\u3002\u6240\u4ee5view\u89c6\u56fe\u7c7b\u51e0\u4e4e\u7528\u4e0d\u5230\u4e86\u3002\u4f46\u4f20\u7edf\u7f51\u9875\u5f00\u53d1\u5f53\u4e2d\uff0cview\u89c6\u56fe\u7c7b\u7684\u76ee\u7684\u5c31\u662f\u4e3a\u4e86\u524d\u540e\u7aef\u5206\u79bb\u800c\u505a\u7684\u89c4\u5212\u3002\u53ea\u4e0d\u8fc7\u5206\u79bb\u4e0d\u591f\u5f7b\u5e95\u3002\u7f16\u5199\u524d\u7aef\u9875\u9762\u7684\u5f00\u53d1\u8005\u4e0d\u9700\u8981\u638c\u63e1php\u76f8\u5173\u77e5\u8bc6\uff0c\u53ea\u9700\u8981\u719f\u6089\u7b80\u5355\u7684\u6a21\u677f\u8bed\u6cd5\u5c31\u53ef\u4ee5\u5f00\u53d1\u6f02\u4eae\u7684\u7f51\u9875\u9875\u9762\u6548\u679c\u3002<\/p>\n<p>  \u4f46\u8981\u5145\u5206\u7406\u89e3\u7684\u662f\uff0cjs\u4ee3\u7801\u662f\u8fd0\u884c\u5728\u6d4f\u89c8\u5668\u5ba2\u6237\u7aef\u7684\u3002\u5bf9\u4e8ephp\u670d\u52a1\u5668\u6765\u8bf4\uff0c\u4efb\u4f55js\uff0chtml,css\u4ee3\u7801\u90fd\u53ea\u662f\u666e\u901a\u5b57\u7b26\u4e32\u800c\u5df2\u3002\u4e5f\u5c31\u662f\u6a21\u677f\u5f53\u4e2d\u7684\u6a21\u677f\u8bed**\u88abphp\u89e3\u6790\u4ee5\u5916\uff0c\u5176\u4ed6\u4f8b\u5982js\u53d8\u91cf\u7b49\uff0c\u90fd\u4e0d\u662f\u5728\u670d\u52a1\u5668\u6267\u884c\u7684\u3002\u9700\u8981\u6d4f\u89c8\u5668\u52a0\u8f7d\u5b8c\u6210\u6574\u4e2a\u9875\u9762\u6570\u636e\u540e\uff0c\u7531\u6d4f\u89c8\u5668\u4e2d\u7684js\u5f15\u64ce\u624d\u80fd\u6b63\u786e\u89e3\u6790js\u5f53\u4e2d\u7684\u53d8\u91cf\u4fe1\u606f\u3002<\/p>\n<p>  \u8fd8\u9700\u8981\u7406\u89e3\u4e00\u70b9\u5c31\u662f\uff1ajson\u5b57\u7b26\u4e32\u662f\u4efb\u610f\u903b\u8f91\u8bed\u8a00\u90fd\u80fd\u6b63\u5e38\u89e3\u6790\u7684\u7279\u6b8a\u683c\u5f0f\u5b57\u7b26\u4e32\uff0c\u4e5f\u5c31\u662fphp\u540c\u6837\u53ef\u4ee5\u683c\u5f0f\u5316json\u5b57\u7b26\u4e32\u4e3aphp\u6570\u7ec4\u548cphp\u5bf9\u8c61\uff0cjs\u4e5f\u540c\u6837\u53ef\u4ee5\u683c\u5f0f\u5316json\u5b57\u7b26\u4e32\u4e3ajs\u5bf9\u8c61.<\/p>\n<p>  \u4f46\u4e0d\u533a\u5206\u8bed\u8a00\u901a\u7528\u7684\u662fjson\u5b57\u7b26\u4e32\uff0c\u800c\u683c\u5f0f\u5316\u540e\u7684\u5404\u79cd\u8bed\u8a00\u7684json\u5bf9\u8c61\u5374\u662f\u4e0d\u901a\u7528\u7684\u3002\u6240\u4ee5\u8981\u53d1\u9001\u4e00\u4e2ajson\u6570\u636e\u7ed9\u5176\u4ed6\u8bed\u8a00\uff0c\u53ea\u80fd\u662fjson\u5b57\u7b26\u4e32\uff0c\u800c\u4e0d\u662f\u7279\u5b9a\u8bed\u8a00\u7684json \u5bf9\u8c61\u3002<\/p>\n<p>  json\u7684\u51fa\u73b0\uff0c\u7b80\u5316\u4e86api\u5bf9\u63a5\u5f53\u4e2d\u6570\u636e\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u8fc7\u7a0b\uff0c\u6bd4\u5982xml\u540c\u6837\u4e5f\u662f\u591a\u8bed\u8a00\u652f\u6301\u683c\u5f0f\u5316\u7684\u6570\u636e\u683c\u5f0f\uff0c\u4f46\u5374\u6ca1\u6709json\u5b57\u7b26\u4e32\u7b80\u4fbf\u3002\u6240\u4ee5\u63a8\u8350\u4ee5\u540eAPI\u5bf9\u63a5\u5f53\u4e2d\u91c7\u7528json\u5b57\u7b26\u4e32\u65b9\u5f0f\u5bf9\u63a5\u3002<\/p>\n<p>  \u662f\u4f60\u6765\u8bf4dom\u7684\uff0c\u6211\u624d\u6765\u8bf4PHP\u8ddfdom\u6ca1\u6709\u5173\u7cfb\uff0c\u7136\u540e\u4f60\u4eec\u5c31\u6765\u8bf4\u540e\u7aef\u53ef\u4ee5\u5904\u7406dom\uff0c\u95ee\u9898\u5c31\u662f\u6bd4\u5982\u4eba\u5bb6\u8ba8\u8bbalinux\uff0c\u4f60\u975e\u8981\u8bf4exe\uff0c\u7136\u540e\u8bf4linux\u8ddfexe\u6ca1\u5173\u7cfb\uff0c\u7136\u540e\u6293\u4f4f\u4e00\u70b9\uff0cwine\u88ab\u4f60\u5403\u4e86\u5440\u7684\u53e3\u543b\u3002\u3002\u3002\u3002\u5230\u5934\u6765\u7b2c\u4e8c\u4e2a\u5e16\u5b50\u5c31\u5f00\u59cb\u4eba\u8eab\u653b\u51fb\u8bf4\u6211\u53d7\u8fc7\u4f24\u80fd\u7406\u89e3\uff0c\u6700\u540e\u8bf4\u6211\u53ea\u4f1a\u767e\u5ea6\uff0c\u8fd8\u662f\u4e2a\u5de5\u5177\u4eba\u3002\u3002\u3002<br \/>  \u4f60\u4eec\u7684\u903b\u8f91\u601d\u7ef4\u80fd\u529b\u548c\u65ad\u7ae0\u53d6\u4e49\u80fd\u529b\u5c0f\u5f1f\u5b9e\u5728\u4f69\u670d\u5440\u3002\u4e5f\u7b97\u662f\u4e2a\u4eba\u624d<\/p>\n<p>  \u5199\u524d\u7aef\u539f\u751f\u57fa\u7840\uff0c\u5927\u524d\u7aef\u7684\u6765\u55b7\uff0c\u73b0\u5728\u5199\u540e\u7aef\u5de5\u4f5c\u539f\u7406\uff0c\u5927\u524d\u7aef\u7684\u4eba\u53c8\u6765\u55b7\u3002\u4f60\u4eec\u5927\u524d\u7aef\u8ddf\u5973\u6743\u7537\u6743\u4e00\u6837\uff0c\u6709\u610f\u4e49\u5417\uff1f\u5c31\u559c\u6b22\u65e0\u8111\u55b7\uff1f\u5927\u524d\u7aef\u7684\u8d76\u7d27\u6eda<\/p>\n<p>  \u5c45\u7136\u88ab\u4e2a\u80fd\u5199\u51fa\u5168\u79f0SSR\u5355\u8bcd\u8bcd\u7ec4\u7684\u4eba\u5632\u7b11\u521d\u7ea7\u4e86\u3002\u3002\u3002\u3002\u80fd\u4e0d\u80fd\u597d\u597d\u8bf4\u8bdd\uff1f\u540e\u7aef\u4e0d\u662f\u53ea\u6709\u4f60node\u7684\uff0c\u53ef\u61c2\uff1f\u6211\u5728\u8bf4PHP\u4f60\u6765\u8ddf\u6211\u626fdom,\u5230\u5e95\u8c01\u662f\u5c0f\u4e11\u554a\u3002<\/p>\n<p>  \u6211\u4e0d\u592a\u60f3\u56de\u590d\u4f60\u7684\uff0c\u591a\u770b\u770b\u6211\u7684\u5386\u53f2\u8d34\u5427\u3002\u5f88\u591a\u6280\u672f\u5927\u795e\u5c31\u662f\u88ab\u4f60\u4eec\u8fd9\u79cd\u5c0f\u4e11\u6298\u817e\u5f97\u9690\u9000\u4e86\u3002\u4e0d\u8fc7\u6211\u53ea\u662f\u559c\u6b22\u53cd\u9a73\u7684\u90a3\u4e2a\uff0c\u60f3\u8ba9\u6211\u7834\u9632\u8d70\u4eba\uff1f\u4e0d\u5b58\u5728\u7684\uff0c\u5fc3\u6001\u597d\u5f97\u5f88\u3002<\/p>\n<p>  \u5173\u952e\u4f60\u7b2c\u4e00\u53e5\uff0c\u5c31\u662fdom\uff0c\u6211\u5728\u8bf4php\u597d\u5427\u3002dom =document object model\uff0c\u6587\u6863\u5bf9\u8c61\u6a21\u578b\u3002\u6211\u7684\u5386\u53f2\u6587\u7ae0\u5df2\u7ecf\u89e3\u91ca\u5f88\u6e05\u695a\u4e86\u3002\u4f60\u865a\u5fc3\u70b9\u5b66\u4e60\u4e0b\u4e5f\u4e0d\u9519\uff0c\u4e0d\u8981\u518d\u6765\u5f53\u5c0f\u4e11\u8ba8\u8bba\u81ea\u5df1\u4e0d\u719f\u6089\u7684\u9886\u57df<\/p>\n<p>  \u6240\u4ee5\u53eb\u5927\u524d\u7aef\u7684\u4eba\u4e0d\u8981\u53c2\u4e0e\u8ba8\u8bba\u3002\u4f60\u5c31\u8ddf\u51ed\u4ec0\u4e48linux\u4e0d\u80fd\u8fd0\u884cexe\uff1fwine\u88ab\u4f60\u4eec\u5403\u4e86\u4e00\u6837\u7684\u9053\u7406\u3002\u5f3a\u884c\u6765\u89e3\u91ca\u4e00\u4e2a\u8ba8\u8bba\u540e\u7aefmvc\u67b6\u6784\u7684\u5e16\u5b50\u627e\u5b58\u5728\u611f\u6709\u610f\u4e49?<\/p>\n<p>  \u51e1\u662f\u53d1\u5e03\u6280\u672f\u8bba\u575b\u7684\u5e16\u5b50\uff0c\u54ea\u6709\u4e0d\u88c5B\u7684\uff1f\u9694\u58c1\u8bba\u575b\uff0c\u77e5\u4e4e\u66f4\u4e25\u91cd\u597d\u5427\u3002\u8fd9\u624d\u662f\u6280\u672f\u53d1\u5c55\u7f13\u6162\u7684\u6839\u672c\u539f\u56e0\uff0c\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u591a\u6280\u672f\u535a\u5ba2\u5173\u95ed\u8bc4\u8bba\u61c2\u4e86\u5427\uff1f\u5173\u95ed\u535a\u5ba2\u8bc4\u8bba\u7684\u610f\u601d\u5c31\u662f\uff1a\u4f60\u770b\u5c31\u884c\u4e86\uff0c\u4e0d\u770b\u5c31\u6eda\u3002\u522b\u6765\u53fd\u53fd\u55b3\u55b3\u7684\u65e0\u8111\u55b7\u3002\u4f46\u4e92\u52a8\u6027\u7684\u5730\u65b9\uff0c\u5728\u6240\u96be\u514d\uff0c\u56e0\u4e3a\u6280\u672f\u90fd\u662f\u5927\u5bb6\u67e5\u8d44\u6599\u81ea\u5df1\u6478\u7d22\u638c\u63e1\u7684\uff0c\u5176\u4e2d\u7684\u8270\u82e6\u53ea\u6709\u81ea\u5df1\u77e5\u9053\u3002\u4f46\u4e00\u4e9b\u4eba\u559c\u6b22\u5206\u4eab\u51fa\u6765\uff0c\u66f4\u591a\u7684\u4e00\u4e9b\u4eba\u5c31\u5982\u8fd9\u4e9b\u55b7\u5b50\uff0c\u603b\u8ba4\u4e3a\u81ea\u5df1\u82b1\u65f6\u95f4\u6478\u7d22\u638c\u63e1\u7684\u624d\u662f\u5b9d\u8d1d\uff0c\u5e76\u4e14\u5bf9\u5176\u4ed6\u4e0d\u4e86\u89e3\u7684\u55e4\u4e4b\u4ee5\u9f3b\u5b54\u3002\u8fd9\u662f\u56fd\u5185\u5f00\u53d1\u884c\u4e1a\u7684\u6b63\u5e38\u73b0\u8c61<\/p>\n<p>  \u8bf7\u770b\u6e05\u695a\u91cd\u70b9\uff0c\u91cd\u70b9\u4f60\u5df2\u7ecf\u628a\u8bdd\u9898\u8f6c\u79fb\u5230\u8d28\u7591\u6211\u53ea\u4f1a\u767e\u5ea6\uff0c\u5e76\u4e14\u8d28\u7591\u767e\u5ea6\u7684\u5185\u5bb9\u90fd\u662f\u6bd4\u6211\u8fd8\u4e0d\u61c2\u7684\u4eba\u53d1\u7684\u3002\u4f60\u662f\u6709\u591a\u4f18\u79c0\u624d\u4f1a\u8bf4\u51fa\u8fd9\u79cd\u8bdd\u51fa\u6765\u7684\uff0c\u9996\u5bcc\u600e\u4e48\u4e0d\u662f\u4f60\u5462\uff1f\u4e0d\u5408\u7406\u554a  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>minlearnhbs<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tkaleok \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-11-2 16:31<br \/>  \u8bba\u6280\u672f\uff0c\u672c\u8eab\u5c31\u662f\u5728\u4ea4\u6d41\uff0c\u4f60\u85cf\u7740\u6396\u7740\u5f53\u5b9d\u8d1d\uff0c\u7136\u540e\u522b\u4eba\u53d1\u4e2a\u76f8\u5173\u5e16\u5b50\u5c31\u5404\u79cd\u8bbd\u523a\uff0c\u4f60\u53c8\u89c9\u5f97\u4f60\u7b97\u4ec0\u4e48\u4e2a\u4e1c\u897f\uff1f &#8230;<\/p>\n<p>  \u6211\u53d1\u4e86\u4e8c\u4e2a\u4e1c\u897f\uff0c\u4e8c\u4e2a\u4e1c\u897f\u90fd\u53ef\u4ee5\u7528\u3002\u4e00\u4e2a\u4e00\u952e\u811a\u672c\uff0c\u4e00\u4e2amindevdesk\u5728\u7ebfpve+deepin\u3002\uff0c\u90fd\u53ef\u7528\u90fd\u80fd\u7528\uff0c\u6211\u85cf\u4ec0\u4e48\u4e86<\/p>\n<p>  \u4f60\u6709\u4f5c\u54c1\u5417\uff1f<br \/>  \u4f60\u6ca1\u6709\uff0c\u4f46\u662f\u6ca1\u5173\u7cfb\uff0c\u4f60\u4f1a\u6574\u7406\u5fc3\u5f97\u554a\uff0c\u8fd8\u6bcf\u5929\u4e00\u7bc7\u9020\u798fMJJ<\/p>\n<p>  \u4f60\u628a\u6211\u7684\u4f5c\u54c1\u5b9a\u4f4d\u4e8elinux\u521d\u7ea7\u547d\u4ee4\u3002\u83ab\u975e\u4f60\u89c9\u5f97\u4f60\u8fd9\u4e9bphp hellworld.php\u66f4\u9ad8\u4eba\u4e00\u7b49\uff1f<\/p>\n<p>  \u81ea\u5df1\u5fc3\u6001\u4e0d\u8fc7\u5173\uff0c\u5b66\u4ec0\u4e48\u90fd\u4f1a\u8d70\u706b\u5165\u9b54\u3002<br \/>  \u770b\u4ec0\u4e48\u4eba\u90fd\u50cf\u662f\u6765\u6076\u5fc3\u4f60\u7684\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>minlearnhbs<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tkaleok \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-11-2 15:50<br \/>  \u6211\u5728\u7ed9\u81ea\u5df1\u7f16\u5199\u7684php\u6846\u67b6\u5199\u57fa\u7840\u539f\u7406\uff0c\u987a\u4fbf\u666e\u53ca\u4e00\u4e0b\u7ed9\u5927\u5bb6\u3002<br \/>  \u4f60\u5f04\u4e86\u4e2a\u4ec0\u4e48\u4e1c\u897f\uff1f\u8fd8dom\u5143\u7d20\u3002\u3002\u3002\u670d\u52a1\u5668\u4e0a &#8230;<\/p>\n<p> \u670d\u52a1\u5668\u4e0a\u7684\u8bed\u8a00\u80fd\u7406\u89e3\u4ec0\u4e48\u662fdom\u4e48<\/p>\n<p>  \u600e\u4e48\u4e0d\u80fd\u7406\u89e3\uff0cserver side rendering\u3002<br \/>  serverworkers api<\/p>\n<p>  \u5927\u524d\u7aef\u3002\u597d\u4e86\u4e0d\u8bf4\u4e86\u3002\u4f60\u521d\u5b66\u7684\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kaleok<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tminlearnhbs \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-11-2 15:39<br \/>  mvc\u5de5\u4f5c\u539f\u7406\u5c31\u4e00\u53e5\u8bdd\uff1a\u628adom\u5143\u7d20\u5f53\u4f20\u7edf\u684c\u9762widges\u5904\u7406\uff0c\u7edf\u7edf\u7ec4\u4ef6\u5316\u548cCS\u5316\uff0c\u5229\u7528API\u901a\u8baf\u3002\u8fd9\u5e95\u4e0b\u662f\u8bbe\u8ba1\u539f\u7406 &#8230;<\/p>\n<p> \u6211\u5728\u7ed9\u81ea\u5df1\u7f16\u5199\u7684php\u6846\u67b6\u5199\u57fa\u7840\u539f\u7406\uff0c\u987a\u4fbf\u666e\u53ca\u4e00\u4e0b\u7ed9\u5927\u5bb6\u3002<br \/>  \u4f60\u5f04\u4e86\u4e2a\u4ec0\u4e48\u4e1c\u897f\uff1f\u8fd8dom\u5143\u7d20\u3002\u3002\u3002\u670d\u52a1\u5668\u4e0a\u7684\u8bed\u8a00\u80fd\u7406\u89e3\u4ec0\u4e48\u662fdom\u4e48\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>minlearnhbs<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t@kaleok<\/p>\n<p>  \u697c\u4e3b\uff0c\u4f60\u8bf4\u81ea\u5df1\u5fc3\u6001\u597d\uff0c\u5fc3\u6001\u4e00\u5b9a\u8981\u4fdd\u6301\u4f4f\u554a<br \/>  \u4f60\u8fd9\u79cd\u53d7\u8fc7\u592a\u591a\u4f24\u7684\u3002\u8981\u4e48\u6cbb\u6108\uff0c\u8981\u4e48\u81f4\u90c1\u3002\u6ca1\u6709\u4e8c\u5168\u4e4b\u7b56\u54e6\u3002<\/p>\n<p>  \u4fdd\u91cd\uff0c\u95ea\u4e86\u3002<\/p>\n<p>  \t\t\t\t\t<strong>minlearnhbs<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tkaleok \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-11-2 16:33<br \/>  \u5173\u952e\u4f60\u7b2c\u4e00\u53e5\uff0c\u5c31\u662fdom\uff0c\u6211\u5728\u8bf4php\u597d\u5427\u3002dom =document object model\uff0c\u6587\u6863\u5bf9\u8c61\u6a21\u578b\u3002\u6211\u7684\u5386\u53f2\u6587\u7ae0\u5df2\u7ecf\u89e3 &#8230;<\/p>\n<p>  \u5c31\u4e8b\u8bba\u4e8b\u3002<\/p>\n<p>  \u4f60\u4ee5\u4e3a\u6211\u4e0d\u61c2DOM\u5c31\u6765\u8bc4\u4ef7<br \/>  \u6211\u8fd8\u8ba4\u4e3a\u4f60\u5b66\u4e60\u80fd\u529b\u6709\u5f85\u63d0\u9ad8\u3002<\/p>\n<p>  &#8212;-<\/p>\n<p>  \u81f3\u5c11\u4f60\u7684\u5b66\u4e60\u65b9\u6cd5\u6709\u95ee\u9898\uff1a<br \/>  \u8fd9\u79cd\u4e1c\u897f\u53ea\u80fd\u53bb\u8c03\u8bd5\uff0c\u53bb\u5b9e\u8df5<br \/>  \u53d1\u535a\u5ba2\u53d1\u8d34\u7684\u90a3\u79cd\u662f\u63d0\u9ad8\uff0c<\/p>\n<p>  \u4f60\u8fd9\u79cd\u8981\u8bb0\u5f55\uff0c\u5148\u5728\u672c\u5730\u641e\u4e00\u4e2a\u5907\u5fd8\u7cfb\u7edf\u3002\u5929\u5929\u8c03\u8bd5\uff0c\u79ef\u7d2f\u3002\u5b9e\u8df5\u3002<\/p>\n<p>  &#8212;&#8211;<\/p>\n<p>  \u597d\u8bdd\u90fd\u8bf4\u4e86\uff0c\u5c31\u770b\u4f60\u9886\u4e0d\u9886\u609f\u4e86<\/p>\n<p>  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>minlearnhbs<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5927\u9b54\u738b \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-11-2 16:28<br \/>  \u6253\u8d77\u6765 \u6253\u8d77\u6765<\/p>\n<p>  \u4ed6\u6027\u683c\u4e0d\u6297\u538b\u3002\u6ca1\u529e\u6cd5\u3002\u5e94\u8be5\u662f\u53d7\u4f24\u8fc7\u591a\u53cd\u6297\u6ca1\u80fd\u8d62\u8fc7\u5bfc\u81f4\u7684\u3002<\/p>\n<p>  \u6211\u7b2c\u4e00\u53e5\u90a3\u53e5\u4e0d\u7b97\u662f\u55b7\uff0c\u5c31\u662f\u4e5f\u5f88\u60f3\u5e2e\u52a9\u4ed6\u3002\u5948\u4f55\u4ed6\u7406\u89e3\u9519\u4e86  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>minlearnhbs<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tkaleok \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-11-2 16:21<br \/>  \u6211\u4e0d\u592a\u60f3\u56de\u590d\u4f60\u7684\uff0c\u591a\u770b\u770b\u6211\u7684\u5386\u53f2\u8d34\u5427\u3002\u5f88\u591a\u6280\u672f\u5927\u795e\u5c31\u662f\u88ab\u4f60\u4eec\u8fd9\u79cd\u5c0f\u4e11\u6298\u817e\u5f97\u9690\u9000\u4e86\u3002\u4e0d\u8fc7\u6211\u53ea\u662f\u559c\u6b22\u53cd &#8230;<\/p>\n<p>  \u597d\u5de7\u6211\u4e5f\u89c9\u5f97\u6280\u672f\u65b9\u9762\u4f60\u624d\u662f\u5c0f\u4e11\u3002<br \/>  \u800c\u4e14\u4e1d\u6beb\u4e0d\u591f\u865a\u5fc3\u3002<\/p>\n<p>  \u4f60\u7ee7\u7eed\u6bcf\u5929\u628ahostloc\u5f53\u4f60\u7684\u7b14\u8bb0\u672c\u5427\u3002\u6bcf\u5929\u4e00\u7bc7\u767e\u5ea6\u6765\u7684\u603b\u7ed3\u5fc3\u5f97\uff0c\u86ee\u597d\u7684\u3002<br \/>  \u53ea\u662f\u6211\u611f\u89c9\uff0c\u8fd9\u4e9b\u79c1\u623f\u7684\u4e1c\u897f\u66f4\u5e94\u8be5\u653e\u5728\u4f60\u7684\u7535\u8111\u91cc\uff0c<br \/>  \u4e0d\u662f\u5417\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>minlearnhbs<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6709\u4e9b\u6280\u672f\uff0c\u53ea\u8981\u4e86\u89e3\u4e86\u5b83\u7684\u7b2c\u4e00\u6027\u539f\u7406\u3002<br \/>  \u53ea\u8981\u52a0\u4e8e\u4e00\u70b9\u5b9e\u8df5\uff0c\u5c31\u53ef\u4ee5\u4e00\u4e2a\u6708\u80dc\u4efb\u4e13\u4e1a\u7684\u6280\u672f\u5c97\u3002<\/p>\n<p>  \u53ef\u60dc\u4f60\u8981\u9519\u8fc7\u6211\u4e86\u3002:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>minlearnhbs<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t@kaleok<br \/>  \u6211\u89c9\u5f97\u6211\u662f\u5584\u610f\u7684\u3002<\/p>\n<p>  \u53ef\u60dc\u4f60\u6027\u683c\u592a\u706b\u7206\u3002\u4e0d\u7136\u6211\u53ef\u4ee5\u6307\u5bfc\u4f60\u5230\u4e00\u65e5\u767b\u5929\u7684\u5730\u6b65\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>minlearnhbs<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tmvc\u5de5\u4f5c\u539f\u7406\u5c31\u4e00\u53e5\u8bdd\uff1a\u628adom\u5143\u7d20\u5f53\u4f20\u7edf\u684c\u9762widges\u5904\u7406\uff0c\u7edf\u7edf\u7ec4\u4ef6\u5316\u548cCS\u5316\uff0c\u5229\u7528API\u901a\u8baf\u3002\u8fd9\u5e95\u4e0b\u662f\u8bbe\u8ba1\u539f\u7406\u3002<\/p>\n<p>  \u54ea\u6709\u8fd9\u4e48\u591a\u8bdd\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>AD\u76d6<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\u591a\u5b57\uff0c\u4e0d\u770b\uff0c\u4e0d\u770b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>optimism<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u633a\u597d \u9876\u4e00\u4e0b&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>TinyTiny<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7ed1\u5b9a  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u7535\u8111<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8bf4\u7684\u597d\uff01<br \/>  \u5b57\u591a\u4e0d\u770b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>mhsl<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9762\u8bd5\u516b\u80a1\u6587\uff1fhttps:\/\/cdn.jsdelivr.net\/gh\/master-of-forums\/master-of-forums\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>sdqu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tphp\u7684\u8bdd\uff0c\u4f60\u7528\u4e0athinkphp\u51e0\u5929\uff0c\u8fd9\u4e9b\u5c31\u65e0\u5e08\u81ea\u901a\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>minlearnhbs<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tkaleok \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-11-2 15:50<br \/>  \u6211\u5728\u7ed9\u81ea\u5df1\u7f16\u5199\u7684php\u6846\u67b6\u5199\u57fa\u7840\u539f\u7406\uff0c\u987a\u4fbf\u666e\u53ca\u4e00\u4e0b\u7ed9\u5927\u5bb6\u3002<br \/>  \u4f60\u5f04\u4e86\u4e2a\u4ec0\u4e48\u4e1c\u897f\uff1f\u8fd8dom\u5143\u7d20\u3002\u3002\u3002\u670d\u52a1\u5668\u4e0a &#8230;<\/p>\n<p> \u8bf7\u6253\u4f4f\uff1a<br \/>  \u4f60\u5e94\u8be5\u662f\u53d7\u8fc7\u4f24\u4e86\uff0chttps:\/\/hostloc.com\/thread-910089-1-1.html<br \/>  \u624d\u4f1a\u8fd9\u4e48\u5e94\u6fc0\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>kaleok \u5927\u4f6c\u6709\u8bdd\u8bf4 : mv&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/545028"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=545028"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/545028\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=545028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=545028"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=545028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}