{"id":451,"date":"2013-08-26T00:52:25","date_gmt":"2013-08-25T16:52:25","guid":{"rendered":"http:\/\/www.storagelab.org.cn\/zhangdi\/?p=451"},"modified":"2013-08-26T00:52:25","modified_gmt":"2013-08-25T16:52:25","slug":"angularjs_project02","status":"publish","type":"post","link":"https:\/\/www.divis.cn\/index.php\/2013\/08\/26\/angularjs_project02\/","title":{"rendered":"angularJs\u9879\u76ee\u5b9e\u6218\uff0102\uff1a\u524d\u7aef\u7684\u9875\u9762\u5206\u89e3\u4e0e\u7ec4\u88c5"},"content":{"rendered":"<p>\u81ea\u4ece\u4e0a\u4e00\u7bc7\u6587\u7ae0\u5230\u73b0\u5728\u5df2\u7ecf\u6709\u5c06\u8fd1\u4e00\u4e2a\u6708\u7684\u65f6\u95f4\uff0c\u6211\u5c06\u7cbe\u529b\u653e\u5728\u4e86\u524d\u7aef\u9875\u9762\u5206\u89e3\u4e0e\u7ec4\u88c5\uff0c\u548cangularjs\u5982\u4f55\u4e0ejquery\u3001bootstrap\u3001D3\u7b49\u4e00\u7cfb\u5217\u5176\u4ed6\u7c7b\u5e93\u7ed3\u5408\u4f7f\u7528\u7684\u7ecf\u9a8c\u603b\u7ed3\u4e0a\u3002\u7531\u4e8e\u516c\u53f8\u65b0\u62db\u4e86\u4e00\u4e9b\u5458\u5de5\uff0c\u5bf9\u4e8e\u6211\u800c\u8a00\u5feb\u901f\u7684\u505a\u51fademo\u9875\u9762\u7528\u4ee5\u793a\u8303\uff0c\u662f\u8ba9\u65b0\u4eba\u5feb\u901f\u4e0a\u624b\u7684\u6700\u4f73\u65b9\u6848\u3002\u5373\u4f7f\u8fd9\u6bb5\u65f6\u95f4\u5de5\u4f5c\u8f83\u5fd9\uff0c\u5199\u8fd9\u6837\u5927\u6bb5\u6587\u5b57\u7684\u65f6\u95f4\u786e\u5b9e\u4e0d\u597d\u627e\uff0c\u4f46\u6211\u4f9d\u7136\u5fc5\u987b\u52e4\u505a\u8bb0\u5f55\uff0c\u5426\u5219\u7075\u611f\u5982\u6619\u82b1\u4e00\u73b0\u8f6c\u77ac\u5373\u901d\uff0c\u5982\u4f55\u5e26\u9886\u65b0\u4eba\uff0c\u63a8\u52a8\u9879\u76ee\uff1f\u6545\u800c\u6211\u53ea\u80fd\u77e5\u65e0\u4e0d\u8a00\uff0c\u628a\u6211\u6240\u5173\u6ce8\u8fc7\u7684\u5927\u5c0f\u91cd\u70b9\u90fd\u8bb0\u5f55\u4e0b\u6765\u3002<\/p>\n<p>\u90a3\u4e48\u63a5\u4e0b\u6765\u6211\u5148\u8bb2\u8bb2\u7528angularjs\u5982\u4f55\u5b9e\u73b0\u524d\u7aef\u5206\u9875\u3002<\/p>\n<p>\u5728\u6211\u7684\u4e0a\u4e00\u7bc7\u6587\u7ae0<a title=\"\u8be6\u7ec6\u9605\u8bfb angularJs\u9879\u76ee\u5b9e\u6218\uff0101\uff1a\u6a21\u5757\u5212\u5206\u548c\u76ee\u5f55\u7ec4\u7ec7\" href=\"http:\/\/www.storagelab.org.cn\/zhangdi\/2013\/07\/23\/angularjs_for_actual_project\/\" target=\"_blank\" rel=\"noopener\">angularJs\u9879\u76ee\u5b9e\u6218\uff0101\uff1a\u6a21\u5757\u5212\u5206\u548c\u76ee\u5f55\u7ec4\u7ec7<\/a>\u00a0\u53ef\u4ee5\u770b\u5230\uff0c\u6211\u6240\u4f5c\u7684\u5e94\u7528\u6839\u636e\u7528\u6237\u6743\u9650\u548c\u529f\u80fd\u5212\u5206\u4e865\u4e2a\u6a21\u5757\uff0c\u6bcf\u4e2a\u6a21\u5757\u90fd\u6709\u4e0d\u540c\u7684\u5165\u53e3\u70b9\u3002 \u8fd9\u5c31\u4ea7\u751f\u4e86\u4e00\u4e2a\u95ee\u9898\uff0c\u6a21\u5757\u4e4b\u95f4\u6709\u8bb8\u591a\u76f8\u540c\u7684\u5185\u5bb9\u2014\u2014\u5305\u62ec\u6a21\u677f\u3001\u7ec4\u4ef6\u3001\u548c\u901a\u7528JS\u6a21\u5757\u3002\u524d\u7aef\u6709\u4e00\u4e2a\u7279\u70b9\uff0c\u5c31\u662f\u53d8\u66f4\u9891\u7e41\u3002\u4ece\u9879\u76ee\u4e00\u5f00\u59cb\u5c31\u662f\u5982\u6b64\u3002\u6545\u800c\uff0c\u6211\u4eec\u5fc5\u987b\u628a\u8fd9\u4e9b\u76f8\u540c\u7684\u5185\u5bb9\u62bd\u53d6\u51fa\u6765\uff0c\u8fd9\u6837\u4e00\u65e6\u9047\u5230\u53d8\u66f4\uff0c\u5c31\u5f88\u5bb9\u6613\u4fee\u6539\u3002\u5426\u5219\uff0c\u4f60\u66f4\u6539\u4e00\u4e2alogo\u5c31\u8981\u65395\u4e2a\u6a21\u5757\u7684\u4e0d\u540c\u9875\u9762\uff0c\u7d2f\u4e0d\u8bf4\uff0c\u51fa\u9519\u7684\u6982\u7387\u4e5f\u662f\u975e\u5e38\u4e4b\u5927\u3002\u8fd9\u70b9\u76f8\u4fe1\u5927\u5bb6\u90fd\u6709\u6240\u7406\u89e3\u3002<\/p>\n<p>\u8fc7\u53bb\uff0c\u8fd9\u4e2a\u5de5\u4f5c\u4e00\u822c\u90fd\u662f\u540e\u53f0\u52a8\u6001\u811a\u672c\u6765\u5b8c\u6210\uff0c\u6211\u4eec\u5927\u5bb6\u4e5f\u5f88\u719f\u6089\u3002 \u4f8b\u5982\u5728php\u4e2d\uff0c\u4f60\u53ef\u4ee5\u628a\u9996\u9875\u6a21\u677findex.php\u5212\u5206\u4e3aheader.php, container.php, footer.php\u4e09\u4e2a\u6587\u4ef6\uff0c\u7136\u540e\u901a\u8fc7include\u7b49\u65b9\u6cd5\u6765\u7ec4\u88c5\u3002\u540c\u6837\u7684\u529f\u80fd\u653e\u5728\u524d\u7aef\u6709\u70b9\u4e0d\u4e00\u6837\u3002 angularJs\u63d0\u4f9b\u4e86\u4e09\u4e2a\u65b9\u6cd5\u6765\u8fdb\u884c\u524d\u7aef\u5206\u9875\uff0c<\/p>\n<p>\u5176\u4e00\uff0c\u4f7f\u7528ng-view.\u8fd9\u4e2a\u65b9\u6cd5\u662fangular\u5c0f\u7ec4\u63a8\u8350\u4f7f\u7528\u7684\u65b9\u6848\u3002\u901a\u8fc7\u4f7f\u7528\u8def\u7531\u63a7\u5236\uff0c\u53ef\u4ee5\u65b9\u4fbf\u7684\u5b9e\u73b0\u9875\u9762\u7ec4\u5408\u3002\u4f46\u8fd9\u4e2a\u65b9\u6cd5\u4e5f\u6709\u4e00\u4e2a\u91cd\u5927\u7f3a\u70b9\uff0c\u5c31\u662f\u4e00\u4e2ahtml\u6587\u4ef6\u4e2d\uff0c\u53ea\u80fd\u6709\u4e00\u4e2ang-view.\u4e3a\u4ec0\u4e48\u53ea\u80fd\u6709\u4e00\u4e2a\uff1f\u4e8b\u5b9e\u4e0agithub\u5df2\u7ecf\u6709\u4eba\u7ed9angular\u5c0f\u7ec4\u63d0\u51fa\u4e86\u81ea\u5df1\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u7ed9ng-view\u6307\u5b9a\u4e0d\u540c\u7684\u540d\u79f0\uff0c\u8def\u7531\u7684\u65f6\u5019\u4e5f\u9700\u8981\u6307\u5b9a\u663e\u793a\u5728\u54ea\u4e2ang-view\u91cc\uff0c\u4ece\u800c\u5b9e\u73b0\u540c\u4e00html\u4e2d\u591a\u4e2ang-view\u7684\u7ed1\u5b9a\u3002\u4f46\u662f\uff0c\u622a\u6b62\u52301.1.5\u7248\uff0c\u8fd9\u4e2a\u65b9\u6848\u4f9d\u65e7\u6ca1\u6709\u88ab\u5b98\u65b9\u91c7\u7eb3\u3002\u8fd9\u4e2a\u95ee\u9898\u6211\u60f3\u8c37\u6b4cangular\u5c0f\u7ec4\u80af\u5b9a\u6709\u81ea\u5df1\u7684\u7406\u7531\u3002\u662f\u62c5\u5fc3\u8def\u7531\u6df7\u4e71\u8fd8\u662f\u5bb3\u6015\u641e\u51fa\u7c7b\u4f3c\u8fc7\u53bb\u5f00\u53d1\u5e38\u89c1\u7684iframe\u5730\u72f1\uff1f\u8fd9\u4e2a\u95ee\u9898\u6211\u6ca1\u6709\u6df1\u7a76\u3002\u82e5\u6709\u9ad8\u73a9\u544a\u8bc9\u6211\uff0c\u8fd9\u91cc\u6211\u5c31\u5148\u8c22\u8c22\u4e86\u3002\u8fd9\u4e2a\u95ee\u9898\u6211\u6b62\u6b65\u4e8eUi-router,\u4e00\u4e2aangularjs\u7684\u6269\u5c55\u3002\u6709\u5174\u8da3\u7684\u540c\u5b66\u53ef\u4ee5\u53bb\u4e86\u89e3\u4e00\u4e0b\u3002\u00a0<a href=\"http:\/\/angular-ui.github.io\/\">http:\/\/angular-ui.github.io\/<\/a><\/p>\n<p>\u5176\u4e8c\uff0c\u5c06\u5206\u89e3\u7684\u9875\u9762\u5199\u6210directive. \u4f8b\u5982\u4e0b\u9762\u8fd9\u4e2a\u6837\u5b50\uff1a<\/p>\n<pre>angular.module('pageComponents', [], function($compileProvider){\n\t\t$compileProvider.directive('commonHeader', function($compile) {\n\t\t    return {\n\t\t\t    templateUrl: 'application\/views\/frontEnd\/build\/templete\/common\/common_header.html', \n\t\t\t    replace: true,\n\t\t\t    transclude: false,\n\t\t\t    restrict: 'A',\n\t\t\t    scope: false  \n\t\t\t};\n\t\t});\n\t\t$compileProvider.directive('commonFooter', function($compile) {\n\t\t    return {\n\t\t\t    templateUrl: 'application\/views\/frontEnd\/build\/templete\/common\/common_footer.html', \n\t\t\t    replace: true,\n\t\t\t    transclude: false,\n\t\t\t    restrict: 'A',\n\t\t\t    scope: false  \n\t\t\t};\n\t\t});\n\t});<\/pre>\n<p>\u4e8b\u5b9e\u4e0a\uff0c\u8fd8\u53ef\u4ee5\u66f4\u8fdb\u4e00\u6b65\uff0c\u5c06templateUrl\u5199\u6210\u53ef\u4f20\u5165\u7684\u53c2\u6570\u3002\u4f46\u662f\u90a3\u6837\u7684\u8bdd\u5c31\u8ddf\u4e0b\u9762\u8fd9\u4e2a\u65b9\u6cd5\u5dee\u4e0d\u591a\u4e86\u3002<\/p>\n<p>\u7b2c\u4e09\uff0c\u4f7f\u7528ng-include<\/p>\n<p>\u8fd9\u91cc\u6700\u597d\u5148\u770b\u4e00\u4e0bangularjs\u7684API:<a href=\"http:\/\/docs.angularjs.org\/api\/ng.directive:ngInclude\">http:\/\/docs.angularjs.org\/api\/ng.directive:ngInclude<\/a><\/p>\n<p>\u4f7f\u7528ng-include\u975e\u5e38\u7b80\u5355\u3002\u8bf7\u6ce8\u610fsrc\u7684\u53c2\u6570\u662f\u8868\u8fbe\u5f0f\uff0c\u5982\u679c\u8981\u4f20\u9759\u6001\u7684\u5b57\u7b26\u4e32\u53c2\u6570\uff0c\u8bf7\u7528\u5f15\u53f7\u5c06\u53c2\u6570\u5305\u88f9\u8d77\u6765\u3002\u5c31\u50cf\u4e0b\u9762\u8fd9\u4e2a\u4f8b\u5b50\u3002<\/p>\n<p>&lt;div ng-include src=&#8221;&#8216;example.html'&#8221;&gt;&lt;\/div&gt;<\/p>\n<p>\u5229\u7528ng-include\uff0c\u518d\u7ed3\u5408ng-view,\u5b9e\u73b0\u4e4b\u524d\u6240\u8bf4\u7684\u9875\u9762\u5206\u89e3\u548c\u7ec4\u88c5\u5df2\u7ecf\u5f88\u5bb9\u6613\u4e86\uff0c\u5c06\u4e3b\u9875\u9762index.html\u5206\u89e3\u4e3aheader.html\\container.html\\footer.html\u4e09\u90e8\u5206\uff0c\u6211\u4eec\u524d\u7aef\u53ef\u4ee5\u8fd9\u6837\u5b9e\u73b0\u5206\u89e3\u4e0e\u7ec4\u5408\uff1a<\/p>\n<p>&lt;!&#8211; header &#8211;&gt;<\/p>\n<p>&lt;ng-include src=&#8221;&#8216;common_header.html'&#8221;&gt;&lt;\/ng-include&gt;<\/p>\n<p>&lt;div class=&#8221;container&#8221;&gt;<\/p>\n<p>&lt;div ng-view&gt;&lt;\/div&gt;<\/p>\n<p>&lt;\/div&gt;&lt;!&#8211; \/container &#8211;&gt;<\/p>\n<p>&lt;!&#8211; Footer &#8211;&gt;<\/p>\n<p>&lt;ng-include src=&#8221;&#8216;common_footer.html'&#8221;&gt;&lt;\/ng-include&gt;<\/p>\n<p>\u5bf9ng-include\u7a0d\u4f5c\u5904\u7406\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u529f\u80fd\u3002\u4f8b\u5982\u4e0b\u9762\u8fd9\u4e2a\u52a8\u6001\u52a0\u8f7d\u8868\u5355\u9875\u9762\u7684\u4f8b\u5b50\uff0c\u5c31\u662f\u901a\u8fc7\u53d8\u6362ng-include\u7684src\u53c2\u6570\u5b9e\u73b0\u7684\u3002<\/p>\n<pre>$compileProvider.directive(\"dynamicFormInput\", ['$http', '$templateCache',\n\t\tfunction($http, $templateCache) {\n\t\t\treturn {\n\t\t\t\trestrict : 'E',\n\t\t\t\tscope : {\n\t\t\t\t\tmodel : '=',\n\t\t\t\t\tsection : '='\n\t\t\t\t},\n\t\t\t\ttemplate : '&lt;ng:include src=\"tpl\"&gt;&lt;\/ng:include&gt;',\n\t\t\t\tlink : function(scope, iElement, iAttrs) {\n\t\t\t\t\tswitch(scope.section.sectionTypeId) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t$http.get('partials\/survey\/textInput.html', {\n\t\t\t\t\t\t\t\tcache : $templateCache\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tscope.tpl = \"partials\/survey\/textInput.html\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t$http.get('partials\/survey\/selectOneOption.html', {\n\t\t\t\t\t\t\t\tcache : $templateCache\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tscope.tpl = \"partials\/survey\/selectOneOption.html\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t$http.get('partials\/survey\/multiSelectOption.html', {\n\t\t\t\t\t\t\t\tcache : $templateCache\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tscope.tpl = \"partials\/survey\/multiSelectOption.html\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t$http.get('partials\/survey\/boolean.html', {\n\t\t\t\t\t\t\t\tcache : $templateCache\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tscope.tpl = \"partials\/survey\/boolean.html\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\t$http.get('partials\/survey\/multiSelectOption.html', {\n\t\t\t\t\t\t\t\tcache : $templateCache\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tscope.tpl = \"partials\/survey\/multiSelectOption.html\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\tif (scope.section.sectionId == 19) {\n\t\t\t\t\t\t\t\t$http.get('partials\/survey\/addressSelection.html', {\n\t\t\t\t\t\t\t\t\tcache : $templateCache\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tscope.tpl = \"partials\/survey\/addressSelection.html\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}]);<\/pre>\n<p>\u6700\u540e\u5fc5\u987b\u8bf4\u660e\u7684\u662f\uff0c\u8fd9\u4e09\u79cd\u65b9\u6cd5\u5b9e\u8d28\u4e0a\u90fd\u662f\u5229\u7528ajax\u6765\u52a0\u8f7d\u6a21\u677f\u3002\u4f7f\u7528ajax\u6765\u5b9e\u73b0\u9875\u9762\u5206\u89e3\u8fd9\u6837\u7684\u529f\u80fd\uff0c\u76f8\u6bd4\u4f20\u7edf\u7684\u4f7f\u7528\u540e\u53f0\u52a8\u6001\u811a\u672c\u8bed\u8a00\u7684\u65b9\u6848\uff0c\u5fc5\u7136\u4f1a\u5e26\u6765\u989d\u5916\u7684\u5f00\u9500\u3002\u4e8b\u5b9e\u4e0a\uff0c\u4e0d\u5149angularjs\u662f\u8fd9\u6837\uff0c\u6211\u6240\u63a5\u89e6\u8fc7\u7684\u6240\u6709\u524d\u7aef\u6846\u67b6\u90fd\u662f\u5982\u6b64\u3002\u8fd9\u662f\u6d4f\u89c8\u5668\u7aef\u7684\u5bbf\u547d\u3002\u8fd9\u91cc\u6240\u9020\u6210\u7684\u8d1f\u8f7d\u548c\u4e0e\u540e\u53f0\u52a8\u6001\u811a\u672c\u8bed\u8a00\u4e4b\u95f4\u7684\u4f18\u52a3\uff0c\u53ea\u80fd\u7531\u6280\u672f\u4e3b\u7ba1\u81ea\u5df1\u6743\u8861\u3002<\/p>\n<p>\u4e0b\u4e00\u7bc7\u6587\u7ae0\u5c06\u8c08\u8c08angularjs\u6846\u67b6\u5982\u4f55\u4e0e\u5176\u4ed6\u7c7b\u5e93\u8fdb\u884c\u534f\u4f5c\u3002\u4e00\u4e9b\u539f\u6559\u65e8\u4e3b\u4e49\u8005\u8ba4\u4e3a\u65e2\u7136\u4f7f\u7528\u4e86angularjs\uff0c\u90a3\u4e48\u6240\u6709\u7684\u5730\u65b9\u90fd\u5f97\u7528angularjs\u6765\u5c01\u88c5\uff0c\u5c31\u7b97\u88ab\u903c\u4f7f\u7528\u4e86jquery-ui\uff0c\u4e5f\u8981\u628a\u4f7f\u7528\u7684jquery-ui\u7ec4\u4ef6\u5c01\u88c5\u6210angularjs\u7684directives\u624d\u80fd\u7528\u3002\u4e0e\u4e4b\u76f8\u53cd\uff0c\u672c\u4eba\u662f\u652f\u6301\u5728angularjs\u7684\u6a21\u5757\u4e2d\u5199jquery\u4ee3\u7801\u7684\u3002\u4e00\u5f00\u59cb\u6211\u4e5f\u5f88\u6ce8\u610f\u80fd\u7528angular\u7684\u5730\u65b9\u5c31\u4e0d\u5199jquery\u4e4b\u7c7b\u7684\u4ee3\u7801\uff0c\u80fd\u7528angular\u65b9\u6cd5\u5c31\u7528angular\u7684\u65b9\u6cd5\u3002\u7ed3\u679c\u5f88\u660e\u663e\uff0c\u5728\u6dfb\u52a0\u4e86\u5f88\u591a\u5176\u4ed6\u5185\u5bb9\u4e4b\u540e\uff0c\u4e00\u4e2a\u4e2a\u5168\u7528directives\u5c01\u88c5\u8d77\u6765\u4e0d\u73b0\u5b9e\u3002\u51e0\u5341\u4e2a\u53ea\u7528\u4e00\u6b21\u7684D3\u7684chart\uff0c\u90fd\u8ba9\u6211\u5c01\u88c5\u4e00\u904d\u8fd9\u4e0d\u662f\u81ea\u5df1\u7ed9\u81ea\u5df1\u627e\u4e8b\u5417\uff1f\u8bda\u7136\uff0c\u5c01\u88c5\u8d77\u6765\u4f1a\u5f88\u597d\u770b\uff0c\u7b26\u5408angularjs\u89c4\u8303\uff0c\u4f46\u662f\u4e0d\u5c01\u88c5\u4e5f\u4e0d\u89c1\u5f97\u5c31\u5f88\u96be\u7ef4\u62a4\u4e86\uff08\u6211\u7684\u6a21\u5757\u62c6\u5206\u7684\u5f88\u7ec6\uff0c\u5c31\u7b97\u51fa\u73b0jquery-ui\u548cD3\u7684\u4ee3\u7801\u4e5f\u5f88\u660e\u786e\uff0c\u4ecehtml\u6a21\u677f\u7684class\u6807\u7b7e\u4e0a\u5c31\u80fd\u770b\u51fa\u6765\uff09\u3002<\/p>\n<p>\u6700\u540e\uff0c\u63a8\u8350\u7ed9\u5927\u5bb6\u7834\u72fc\u7684\u535a\u5ba2\uff0c<a href=\"http:\/\/www.cnblogs.com\/whitewolf\/p\/angularjs-start.html\">http:\/\/www.cnblogs.com\/whitewolf\/p\/angularjs-start.html<\/a>\u3002\u4ed6\u5bf9angularjs\u7814\u7a76\u7684\u4e0d\u9519\uff0c\u6709\u6570\u6b21\u9879\u76ee\u7684\u7ecf\u9a8c\u3002\u56fd\u5185\u7684\u5341\u51e0\u4e2a\u6211\u770b\u8fc7\u7684\u7814\u7a76angularjs\u7684\u535a\u5ba2\uff0c\u6211\u7b2c\u4e00\u4e2a\u63a8\u8350\u4ed6\u3002\uff08\u6211\u5728\u535a\u5ba2\u56ed\u4e0a\u4e5f\u6ce8\u518c\u8d26\u53f7\u4e86\uff0c\u53eb\u5f20\u8fea-\u897f\u5317\u6ce1\u9762\u738b\uff0c\u53ea\u8bc4\u8bba\uff0c\u4e0d\u53d1\u6587\u7ae0\u3002\u53d1\u6587\u7ae0\uff0c\u8fd9\u91cc\u5c31\u8db3\u591f\u4e86\u3002\u8981\u662f\u80fd\u540c\u6b65\u5c31\u66f4\u597d\u4e86\u3002\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u4ece\u4e0a\u4e00\u7bc7\u6587\u7ae0\u5230\u73b0\u5728\u5df2\u7ecf\u6709\u5c06\u8fd1\u4e00\u4e2a\u6708\u7684\u65f6<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[16,37,78,79,163],"class_list":["post-451","post","type-post","status-publish","format-standard","hentry","category-web-frontend","tag-angularjs","tag-javascript","tag-78","tag-79","tag-163"],"_links":{"self":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/posts\/451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/comments?post=451"}],"version-history":[{"count":0,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/posts\/451\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/media?parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/categories?post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/tags?post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}