{"id":2415,"date":"2017-05-17T08:59:40","date_gmt":"2017-05-17T00:59:40","guid":{"rendered":"http:\/\/www.daliane.com\/?p=2415"},"modified":"2017-05-17T08:59:49","modified_gmt":"2017-05-17T00:59:49","slug":"vue_js_chang_yong_zhi_ling_zong_jie","status":"publish","type":"post","link":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/vue_js_chang_yong_zhi_ling_zong_jie\/","title":{"rendered":"Vue.js\u5e38\u7528\u6307\u4ee4\u603b\u7ed3"},"content":{"rendered":"<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t\u6709\u65f6\u5019\u6307\u4ee4\u592a\u591a\u4f1a\u9020\u6210\u8bb0\u9519\u3001\u8bb0\u6df7\u7684\u95ee\u9898\uff0c\u6240\u4ee5\u672c\u6587\u5728\u8bb0\u5fc6\u7684\u65f6\u5019\u4f1a\u91c7\u7528\u7a7f\u63d2\u8bb0\u5fc6\u7684\u65b9\u5f0f\uff0c\u4ea4\u53c9\u6bd4\u5bf9\uff0c\u4e0d\u6613\u51fa\u9519\u3002\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t\u672c\u6587\u4e3b\u8981\u8bb2\u4e86\u4e00\u4e0b\u516d\u4e2a\u6307\u4ee4\uff1a\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\tv-if\/\/v-show\/\/v-else\/\/v-for\/\/v-bind\/\/v-on\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t<span style=\"line-height:1.5;\">1. v-if \u6761\u4ef6\u6e32\u67d3\u6307\u4ee4\uff0c\u6839\u636e\u5176\u540e\u8868\u8fbe\u5f0f\u7684bool\u503c\u8fdb\u884c\u5224\u65ad\u662f\u5426\u6e32\u67d3\u8be5\u5143\u7d20\uff1b<\/span>\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\teg: &nbsp;\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\tHTML:&nbsp;\n<\/p>\n<div class=\"cnblogs_code\" style=\"background-color:#F5F5F5;border:1px solid #CCCCCC;padding:5px;margin:5px 0px;font-family:&quot;\">\n<pre><span style=\"color:#0000FF;line-height:1.5 !important;\">&lt;<\/span><span style=\"color:#800000;line-height:1.5 !important;\">div <\/span><span style=\"color:#FF0000;line-height:1.5 !important;\">id<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">=\"example01\"<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">&gt;<\/span> <span style=\"color:#0000FF;line-height:1.5 !important;\">&lt;<\/span><span style=\"color:#800000;line-height:1.5 !important;\">p <\/span><span style=\"color:#FF0000;line-height:1.5 !important;\">v-if<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">=\"male\"<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">&gt;<\/span>Male<span style=\"color:#0000FF;line-height:1.5 !important;\">&lt;\/<\/span><span style=\"color:#800000;line-height:1.5 !important;\">p<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">&gt;<\/span> <span style=\"color:#0000FF;line-height:1.5 !important;\">&lt;<\/span><span style=\"color:#800000;line-height:1.5 !important;\">p <\/span><span style=\"color:#FF0000;line-height:1.5 !important;\">v-if<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">=\"female\"<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">&gt;<\/span>Female<span style=\"color:#0000FF;line-height:1.5 !important;\">&lt;\/<\/span><span style=\"color:#800000;line-height:1.5 !important;\">p<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">&gt;<\/span> <span style=\"color:#0000FF;line-height:1.5 !important;\">&lt;<\/span><span style=\"color:#800000;line-height:1.5 !important;\">p <\/span><span style=\"color:#FF0000;line-height:1.5 !important;\">v-if<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">=\"age&gt;25\"<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">&gt;<\/span>Age:{{age}}<span style=\"color:#0000FF;line-height:1.5 !important;\">&lt;\/<\/span><span style=\"color:#800000;line-height:1.5 !important;\">p<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">&gt;<\/span> <span style=\"color:#0000FF;line-height:1.5 !important;\">&lt;<\/span><span style=\"color:#800000;line-height:1.5 !important;\">p <\/span><span style=\"color:#FF0000;line-height:1.5 !important;\">v-if<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">=\"name.indexOf('lin')&gt;0\"<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">&gt;<\/span>Name:{{name}}<span style=\"color:#0000FF;line-height:1.5 !important;\">&lt;\/<\/span><span style=\"color:#800000;line-height:1.5 !important;\">p<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">&gt;<\/span> <span style=\"color:#0000FF;line-height:1.5 !important;\">&lt;\/<\/span><span style=\"color:#800000;line-height:1.5 !important;\">div<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">&gt;<\/span><\/pre>\n<\/div>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\tJS:\n<\/p>\n<div class=\"cnblogs_code\" style=\"background-color:#F5F5F5;border:1px solid #CCCCCC;padding:5px;margin:5px 0px;font-family:&quot;\">\n<div class=\"cnblogs_code_toolbar\">\n\t\t<span class=\"cnblogs_code_copy\" style=\"line-height:1.5 !important;\"><a><img decoding=\"async\" src=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2017\/05\/copycode1.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span>\n\t<\/div>\n<pre><span style=\"color:#0000FF;line-height:1.5 !important;\">var<\/span> vm= <span style=\"color:#0000FF;line-height:1.5 !important;\">new<\/span><span style=\"line-height:1.5 !important;\"> Vue({\r\n        el:<\/span>\"#example01\"<span style=\"line-height:1.5 !important;\">,\r\n        data:{\r\n            male:<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">true<\/span><span style=\"line-height:1.5 !important;\">,\r\n            female: <\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">false<\/span><span style=\"line-height:1.5 !important;\">,\r\n            age:<\/span>29<span style=\"line-height:1.5 !important;\">,\r\n            name:<\/span>'colin'<span style=\"line-height:1.5 !important;\"> }\r\n    })<\/span><\/pre>\n<div class=\"cnblogs_code_toolbar\">\n\t\t<span class=\"cnblogs_code_copy\" style=\"line-height:1.5 !important;\"><a><img decoding=\"async\" src=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2017\/05\/copycode1.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span>\n\t<\/div>\n<\/div>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t\u9875\u9762\u6e32\u67d3\u6548\u679c\uff1a\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t<img decoding=\"async\" src=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2017\/05\/862173-20160814162621609-999115737.png\" alt=\"\" \/>\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t\u6240\u4ee5\uff0cv-if\u6307\u4ee4\u53ea\u6e32\u67d3\u4ed6\u8eab\u540e\u8868\u8fbe\u5f0f\u4e3atrue\u7684\u5143\u7d20\uff1b\u5728\u8fd9\u91cc\u5f15\u5165v-show\u6307\u4ee4\uff0c\u56e0\u4e3a\u4e8c\u8005\u7684\u533a\u522b\u662fv-show\u6307\u4ee4\u4f1a\u6e32\u67d3\u4ed6\u8eab\u540e\u8868\u8fbe\u5f0f\u4e3afalse\u7684\u5143\u7d20\uff0c\u8fd9\u6837\u7684\u5143\u7d20\u4e0a\u4f1a\u6dfb\u52a0css\u4ee3\u7801\uff1astyle=&#8221;display:none&#8221;; \u5c06\u4e0a\u9762v-if\u7684\u5b9e\u4f8b\u4ee3\u7801\u6539\u4e3av-show\uff0c\u9875\u9762\u6e32\u67d3\u6548\u679c\u4e3a\uff1a\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t<img decoding=\"async\" src=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2017\/05\/862173-20160814163007687-760368450.png\" alt=\"\" \/>\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t&nbsp;\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t2, v-show \u4e0ev-if\u7c7b\u4f3c\uff0c\u53ea\u662f\u4f1a\u6e32\u67d3\u5176\u8eab\u540e\u8868\u8fbe\u5f0f\u4e3afalse\u7684\u5143\u7d20\uff0c\u800c\u4e14\u4f1a\u7ed9\u8fd9\u6837\u7684\u5143\u7d20\u6dfb\u52a0css\u4ee3\u7801\uff1astyle=&#8221;display:none&#8221;;\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t3, v-else \u5fc5\u987b\u8ddf\u5728v-if\/v-show\u6307\u4ee4\u4e4b\u540e\uff0c\u4e0d\u7136\u4e0d\u8d77\u4f5c\u7528\uff1b\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t\u5982\u679cv-if\/v-show\u6307\u4ee4\u7684\u8868\u8fbe\u5f0f\u4e3atrue\uff0c\u5219else\u5143\u7d20\u4e0d\u663e\u793a\uff1b\u5982\u679cv-if\/v-show\u6307\u4ee4\u7684\u8868\u8fbe\u5f0f\u4e3afalse\uff0c\u5219else\u5143\u7d20\u663e\u793a\u5728\u9875\u9762\u4e0a\uff1b\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\teg:&nbsp;\n<\/p>\n<div class=\"cnblogs_code\" style=\"background-color:#F5F5F5;border:1px solid #CCCCCC;padding:5px;margin:5px 0px;font-family:&quot;\">\n<div class=\"cnblogs_code_toolbar\">\n\t\t<span class=\"cnblogs_code_copy\" style=\"line-height:1.5 !important;\"><a><img decoding=\"async\" src=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2017\/05\/copycode1.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span>\n\t<\/div>\n<pre>&lt;div id=\"app\"&gt;\r\n&lt;h1 v-<span style=\"color:#0000FF;line-height:1.5 !important;\">if<\/span>=\"age &gt;= 25\"&gt;Age: {{ age }}&lt;\/h1&gt;\r\n&lt;h1 v-<span style=\"color:#0000FF;line-height:1.5 !important;\">else<\/span>&gt;Name: {{ name }}&lt;\/h1&gt;\r\n&lt;hr&gt;\r\n&lt;h1 v-show=\"name.indexOf('cool') = 0\"&gt;Name: {{ name }}&lt;\/h1&gt;\r\n&lt;h1 v-<span style=\"color:#0000FF;line-height:1.5 !important;\">else<\/span>&gt;Sex: {{ sex }}&lt;\/h1&gt;\r\n&lt;\/div&gt;\r\n\r\n\r\n&lt;script&gt; <span style=\"color:#0000FF;line-height:1.5 !important;\">var<\/span> vm = <span style=\"color:#0000FF;line-height:1.5 !important;\">new<\/span><span style=\"line-height:1.5 !important;\"> Vue({\r\n        el: <\/span>'#app'<span style=\"line-height:1.5 !important;\">,\r\n        data: {\r\n            age: <\/span>21<span style=\"line-height:1.5 !important;\">,\r\n            name: <\/span>'keepcool'<span style=\"line-height:1.5 !important;\">,\r\n            sex: <\/span>'Male'<span style=\"line-height:1.5 !important;\"> }\r\n    }) <\/span>&lt;\/script&gt;<\/pre>\n<div class=\"cnblogs_code_toolbar\">\n\t\t<span class=\"cnblogs_code_copy\" style=\"line-height:1.5 !important;\"><a><img decoding=\"async\" src=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2017\/05\/copycode1.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span>\n\t<\/div>\n<\/div>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t&nbsp;\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t4, v-for &nbsp;\u7c7b\u4f3cJS\u7684\u904d\u5386\uff0c\u7528\u6cd5\u4e3a v-for=&#8221;item in items&#8221;, items\u662f\u6570\u7ec4\uff0citem\u4e3a\u6570\u7ec4\u4e2d\u7684\u6570\u7ec4\u5143\u7d20\u3002\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\teg:\n<\/p>\n<div class=\"cnblogs_code\" style=\"background-color:#F5F5F5;border:1px solid #CCCCCC;padding:5px;margin:5px 0px;font-family:&quot;\">\n<div class=\"cnblogs_code_toolbar\">\n\t\t<span class=\"cnblogs_code_copy\" style=\"line-height:1.5 !important;\"><a><img decoding=\"async\" src=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2017\/05\/copycode1.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span>\n\t<\/div>\n<pre>CSS:\r\n&lt;style&gt;<span style=\"line-height:1.5 !important;\"> table,th,tr,td{\r\n            border:1px solid #ffcccc;\r\n            border<\/span>-<span style=\"line-height:1.5 !important;\">collapse: collapse;\r\n        } <\/span>&lt;\/style&gt;\r\nHTML:\r\n&lt;div id=\"example03\"&gt;\r\n    &lt;table&gt;\r\n        &lt;thead&gt;\r\n        &lt;tr&gt;\r\n            &lt;th&gt;Name&lt;\/th&gt;\r\n            &lt;th&gt;Age&lt;\/th&gt;\r\n            &lt;th&gt;Sex&lt;\/th&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;\/thead&gt;\r\n        &lt;tbody&gt;\r\n        &lt;tr v-<span style=\"color:#0000FF;line-height:1.5 !important;\">for<\/span>=\"person in people\"&gt;\r\n            &lt;td&gt;{{ person.name  }}&lt;\/td&gt;\r\n            &lt;td&gt;{{ person.age  }}&lt;\/td&gt;\r\n            &lt;td&gt;{{ person.sex  }}&lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;\/tbody&gt;\r\n    &lt;\/table&gt;\r\n&lt;\/div&gt;\r\nJS:\r\n&lt;script&gt; <span style=\"color:#0000FF;line-height:1.5 !important;\">var<\/span> vm = <span style=\"color:#0000FF;line-height:1.5 !important;\">new<\/span><span style=\"line-height:1.5 !important;\"> Vue({\r\n        el: <\/span>'#example03'<span style=\"line-height:1.5 !important;\">,\r\n        data: {\r\n            people: [{\r\n                name: <\/span>'Jack'<span style=\"line-height:1.5 !important;\">,\r\n                age: <\/span>30<span style=\"line-height:1.5 !important;\">,\r\n                sex: <\/span>'Male'<span style=\"line-height:1.5 !important;\"> }, {\r\n                name: <\/span>'Bill'<span style=\"line-height:1.5 !important;\">,\r\n                age: <\/span>26<span style=\"line-height:1.5 !important;\">,\r\n                sex: <\/span>'Male'<span style=\"line-height:1.5 !important;\"> }, {\r\n                name: <\/span>'Tracy'<span style=\"line-height:1.5 !important;\">,\r\n                age: <\/span>22<span style=\"line-height:1.5 !important;\">,\r\n                sex: <\/span>'Female'<span style=\"line-height:1.5 !important;\"> }, {\r\n                name: <\/span>'Chris'<span style=\"line-height:1.5 !important;\">,\r\n                age: <\/span>36<span style=\"line-height:1.5 !important;\">,\r\n                sex: <\/span>'Male'<span style=\"line-height:1.5 !important;\"> }]\r\n        }\r\n    }) <\/span>&lt;\/script&gt;<\/pre>\n<div class=\"cnblogs_code_toolbar\">\n\t\t<span class=\"cnblogs_code_copy\" style=\"line-height:1.5 !important;\"><a><img decoding=\"async\" src=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2017\/05\/copycode1.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span>\n\t<\/div>\n<\/div>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t\u9875\u9762\u6548\u679c\uff1a\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t<img decoding=\"async\" src=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2017\/05\/862173-20160814164529406-1638623608.png\" alt=\"\" \/>\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t&nbsp;\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t5, v-bind &nbsp;\u8fd9\u4e2a\u6307\u4ee4\u7528\u4e8e\u54cd\u5e94\u5730\u66f4\u65b0 HTML \u7279\u6027\uff0c\u6bd4\u5982\u7ed1\u5b9a\u67d0\u4e2aclass\u5143\u7d20\u6216\u5143\u7d20\u7684style\u6837\u5f0f\u3002\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\teg,\u5206\u9875\u529f\u80fd\u4e2d\u5f53\u524d\u9875\u6570\u9ad8\u4eae\u7684\u6548\u679c\uff0c\u53ef\u4ee5\u4f7f\u7528bind\u6307\u4ee4\u3002\n<\/p>\n<div class=\"cnblogs_code\" style=\"background-color:#F5F5F5;border:1px solid #CCCCCC;padding:5px;margin:5px 0px;font-family:&quot;\">\n<pre>&lt;ul class=\"pagination\"&gt;\r\n                &lt;li v-<span style=\"color:#0000FF;line-height:1.5 !important;\">for<\/span>=\"n in pageCount\"&gt;\r\n                    &lt;a href=\"javascripit:void(0)\" v-bind:class=\"activeNumber === n + 1 ? 'active' : ''\"&gt;{{ n + 1 }}&lt;\/a&gt;\r\n                &lt;\/li&gt;\r\n            &lt;\/ul&gt;<\/pre>\n<\/div>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t&nbsp;\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t6, v-on &nbsp;\u7528\u4e8e\u76d1\u542c\u6307\u5b9a\u5143\u7d20\u7684DOM\u4e8b\u4ef6\uff0c\u6bd4\u5982\u70b9\u51fb\u4e8b\u4ef6\u3002\n<\/p>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\teg:\n<\/p>\n<div class=\"cnblogs_code\" style=\"background-color:#F5F5F5;border:1px solid #CCCCCC;padding:5px;margin:5px 0px;font-family:&quot;\">\n<div class=\"cnblogs_code_toolbar\">\n\t\t<span class=\"cnblogs_code_copy\" style=\"line-height:1.5 !important;\"><a><img decoding=\"async\" src=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2017\/05\/copycode1.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span>\n\t<\/div>\n<pre>&lt;div id=\"example04\"&gt;\r\n        &lt;input type=\"text\" v-model=\"message\"&gt;\r\n        &lt;button v-on:click=\"greet\"&gt;Greet&lt;\/button&gt;\r\n        &lt;!-- v-on\u6307\u4ee4\u53ef\u4ee5\u7f29\u5199\u4e3a@\u7b26\u53f7--&gt;\r\n     &lt;button @click=\"greet\"&gt;Greet Again&lt;\/button&gt;\r\n    &lt;\/div&gt;\r\n&lt;script&gt; <span style=\"color:#0000FF;line-height:1.5 !important;\">var<\/span> exampleData04=<span style=\"line-height:1.5 !important;\">{\r\n        message:<\/span>\"Nice meeting U\"<span style=\"line-height:1.5 !important;\"> }; <\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">var<\/span> vm2=<span style=\"color:#0000FF;line-height:1.5 !important;\">new<\/span><span style=\"line-height:1.5 !important;\"> Vue({\r\n        el:<\/span>\"#example04\"<span style=\"line-height:1.5 !important;\">,\r\n        data:exampleData04,\r\n        methods:{\r\n            greet:<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">function<\/span><span style=\"line-height:1.5 !important;\">(){\r\n                alert(<\/span><span style=\"color:#0000FF;line-height:1.5 !important;\">this<\/span><span style=\"line-height:1.5 !important;\">.message);\r\n            }\r\n         \r\n        }\r\n    }) <\/span>&lt;\/script&gt;<\/pre>\n<div class=\"cnblogs_code_toolbar\">\n\t\t<span class=\"cnblogs_code_copy\" style=\"line-height:1.5 !important;\"><a><img decoding=\"async\" src=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2017\/05\/copycode1.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span>\n\t<\/div>\n<\/div>\n<p style=\"color:#303030;font-family:Verdana, Helvetica, Arial;background-color:#FFFFFF;\">\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u65f6\u5019\u6307\u4ee4\u592a\u591a\u4f1a\u9020\u6210\u8bb0\u9519\u3001\u8bb0\u6df7\u7684\u95ee\u9898\uff0c\u6240\u4ee5\u672c\u6587\u5728\u8bb0\u5fc6\u7684\u65f6\u5019\u4f1a\u91c7\u7528\u7a7f\u63d2\u8bb0\u5fc6\u7684\u65b9\u5f0f\uff0c\u4ea4\u53c9\u6bd4\u5bf9\uff0c\u4e0d\u6613\u51fa\u9519\u3002 \u672c\u6587\u4e3b\u8981&#8230;<\/p>\n","protected":false},"author":2,"featured_media":228,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[38,56],"tags":[],"_links":{"self":[{"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/posts\/2415"}],"collection":[{"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/comments?post=2415"}],"version-history":[{"count":1,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/posts\/2415\/revisions"}],"predecessor-version":[{"id":2420,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/posts\/2415\/revisions\/2420"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/media\/228"}],"wp:attachment":[{"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/media?parent=2415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/categories?post=2415"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/tags?post=2415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}