{"id":587,"date":"2024-12-29T22:48:48","date_gmt":"2024-12-29T14:48:48","guid":{"rendered":"http:\/\/www.wengdao.net\/?p=587"},"modified":"2024-12-29T22:50:59","modified_gmt":"2024-12-29T14:50:59","slug":"php-7-%e7%89%88%e6%9c%ac%e5%8d%87%e7%ba%a7%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/jiandao.zliby.com\/?p=587","title":{"rendered":"PHP 7 \u7248\u672c\u5347\u7ea7\u5206\u6790\u7684 3+2"},"content":{"rendered":"<h1>PHP 7 \u7248\u672c\u5347\u7ea7\u5206\u6790<\/h1>\n<h2>\u4e94\u4e2a\u7ef4\u5ea6\u5206\u6790\u4e00\u4e0bPHP7\u7684\u53d8\u5316<\/h2>\n<p>1.\u529f\u80fd\u6027<br \/>\n2.\u517c\u5bb9\u6027<br \/>\n3.\u5b89\u5168\u6027<br \/>\n4.\u6027\u80fd<br \/>\n5.\u751f\u6001<\/p>\n<h2>1. \u529f\u80fd\u7279\u6027<\/h2>\n<ul>\n<li>\n<p><strong>\u7c7b\u578b\u58f0\u660e<\/strong>\uff1a<\/p>\n<ul>\n<li>PHP 7 \u5f15\u5165\u4e86\u6807\u91cf\u7c7b\u578b\u58f0\u660e\uff08<code class=\"prettyprint\" >int<\/code>, <code>string<\/code>, <code>bool<\/code>, <code>float<\/code>\uff09\u548c\u8fd4\u56de\u7c7b\u578b\u58f0\u660e\uff0c\u589e\u5f3a\u4e86\u4ee3\u7801\u7684\u7c7b\u578b\u5b89\u5168\u6027\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u660e\u786e\u6307\u5b9a\u51fd\u6570\u7684\u53c2\u6570\u548c\u8fd4\u56de\u503c\u7c7b\u578b\uff0c\u907f\u514d\u56e0\u7c7b\u578b\u4e0d\u5339\u914d\u5f15\u8d77\u7684\u9519\u8bef\u3002<\/li>\n<li>\u4f8b\u5982\uff1a\n<pre><code class=\"prettyprint\"  class=\"language-php\">function add(int $a, int $b): int {\nreturn $a + $b;\n}<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>Null \u5408\u5e76\u64cd\u4f5c\u7b26 (<code class=\"prettyprint\" >??<\/code>)<\/strong>\uff1a<\/p>\n<ul>\n<li>PHP 7 \u5f15\u5165\u4e86 <strong>Null \u5408\u5e76\u64cd\u4f5c\u7b26<\/strong>\uff0c\u7b80\u5316\u4e86\u5bf9 <code class=\"prettyprint\" >null<\/code> \u503c\u7684\u5224\u65ad\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u66ff\u4ee3 <code>isset()<\/code> \u6216\u4e09\u5143\u8fd0\u7b97\u7b26\u7684\u5199\u6cd5\uff0c\u63d0\u5347\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7b80\u6d01\u6027\u3002<\/li>\n<li>\u4f8b\u5982\uff1a\n<pre><code class=\"prettyprint\"  class=\"language-php\">$name = $user[&#039;name&#039;] ?? &#039;Guest&#039;;<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u533f\u540d\u7c7b<\/strong>\uff1a<\/p>\n<ul>\n<li>PHP 7 \u652f\u6301\u4e86 <strong>\u533f\u540d\u7c7b<\/strong>\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u80fd\u591f\u5728\u8fd0\u884c\u65f6\u521b\u5efa\u7c7b\u5bf9\u8c61\u800c\u4e0d\u9700\u8981\u4e8b\u5148\u5b9a\u4e49\u4e00\u4e2a\u7c7b\u540d\u3002<\/li>\n<li>\u4f8b\u5982\uff1a\n<pre><code class=\"prettyprint\"  class=\"language-php\">$obj = new class {\npublic function sayHello() {\n    echo &quot;Hello!&quot;;\n}\n};<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8fd0\u7b97\u7b26\u589e\u5f3a<\/strong>\uff1a<\/p>\n<ul>\n<li>\u5f15\u5165\u4e86\u65b0\u7684 <strong><code class=\"prettyprint\" >spaceship<\/code> \u64cd\u4f5c\u7b26 (<code>&lt;=&gt;<\/code>)<\/strong>\uff0c\u8be5\u64cd\u4f5c\u7b26\u7528\u4e8e\u4e09\u65b9\u6bd4\u8f83\uff0c\u901a\u5e38\u7528\u4e8e\u6392\u5e8f\u64cd\u4f5c\u3002\u5b83\u8fd4\u56de <code>-1<\/code>\u3001<code>0<\/code> \u6216 <code>1<\/code>\uff0c\u8868\u793a\u6bd4\u8f83\u4e24\u4e2a\u503c\u7684\u5927\u5c0f\u3002<\/li>\n<li>\u4f8b\u5982\uff1a\n<pre><code class=\"prettyprint\"  class=\"language-php\">$result = $a &lt;=&gt; $b;  \/\/ \u6bd4\u8f83 $a \u548c $b\uff0c\u8fd4\u56de -1\u30010 \u6216 1<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u589e\u5f3a\u7684\u9519\u8bef\u548c\u5f02\u5e38\u5904\u7406<\/strong>\uff1a<\/p>\n<ul>\n<li>PHP 7 \u5bf9 <strong>\u5f02\u5e38\u5904\u7406<\/strong> \u8fdb\u884c\u4e86\u6539\u8fdb\uff0c\u65b0\u7684 <code class=\"prettyprint\" >Throwable<\/code> \u63a5\u53e3\u4f7f\u5f97 <strong>Error<\/strong> \u548c <strong>Exception<\/strong> \u4e24\u4e2a\u7c7b\u90fd\u53ef\u4ee5\u88ab\u6355\u83b7\uff0c\u589e\u5f3a\u4e86\u9519\u8bef\u7ba1\u7406\u7684\u7075\u6d3b\u6027\u3002<\/li>\n<li>\u5728 PHP 7 \u4e2d\uff0c\u5f88\u591a\u81f4\u547d\u9519\u8bef\uff08\u5982\u5185\u5b58\u6ea2\u51fa\uff09\u88ab\u8f6c\u5316\u4e3a <code class=\"prettyprint\" >Error<\/code> \u7c7b\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7 <code>try-catch<\/code> \u5757\u8fdb\u884c\u6355\u83b7\u548c\u5904\u7406\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>2. \u517c\u5bb9\u6027<\/h2>\n<ul>\n<li>\n<p><strong>\u5e9f\u5f03\u548c\u79fb\u9664\u7684\u529f\u80fd<\/strong>\uff1a<\/p>\n<ul>\n<li><strong><code class=\"prettyprint\" >mysql_*<\/code> \u51fd\u6570\u7cfb\u5217<\/strong>\uff1aPHP 7 \u79fb\u9664\u4e86\u8fc7\u65f6\u7684 <code>mysql_*<\/code> \u51fd\u6570\uff0c\u63a8\u8350\u4f7f\u7528\u66f4\u73b0\u4ee3\u7684 <code>mysqli<\/code> \u6216 <code>PDO<\/code>\uff08PHP \u6570\u636e\u5bf9\u8c61\uff09\u3002<\/li>\n<li><strong><code class=\"prettyprint\" >ereg<\/code> \u6269\u5c55<\/strong>\uff1a\u79fb\u9664\u4e86\u4e0d\u518d\u63a8\u8350\u4f7f\u7528\u7684 <code>ereg<\/code> \u6269\u5c55\uff0c\u63a8\u8350\u4f7f\u7528 <code>preg<\/code> \u6269\u5c55\uff08\u57fa\u4e8e PCRE\uff09\u6765\u8fdb\u884c\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u3002<\/li>\n<li><strong><code class=\"prettyprint\" >ext\/mysql<\/code> \u6269\u5c55<\/strong>\uff1a\u79fb\u9664\u65e7\u7684 <code>ext\/mysql<\/code> \u6269\u5c55\uff0c\u5e76\u5f3a\u70c8\u5efa\u8bae\u4f7f\u7528 <code>ext\/mysqli<\/code> \u6216 <code>PDO<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u9519\u8bef\u5904\u7406\u6539\u8fdb<\/strong>\uff1a<\/p>\n<ul>\n<li>\u8bb8\u591a\u81f4\u547d\u9519\u8bef\uff08\u5982 <strong>memory allocation<\/strong> \u9519\u8bef\uff09\u5728 PHP 7 \u4e2d\u88ab\u8f6c\u6362\u6210 <code class=\"prettyprint\" >Error<\/code> \u7c7b\uff0c\u4f7f\u5f97\u8fd9\u4e9b\u9519\u8bef\u53ef\u4ee5\u901a\u8fc7 <code>try-catch<\/code> \u5757\u6355\u83b7\u5e76\u5904\u7406\uff0c\u4ece\u800c\u907f\u514d\u7a0b\u5e8f\u5d29\u6e83\u3002<\/li>\n<li>\u5f02\u5e38\u673a\u5236\u53d8\u5f97\u66f4\u52a0\u7edf\u4e00\uff0c<code class=\"prettyprint\" >Exception<\/code> \u548c <code>Error<\/code> \u90fd\u5b9e\u73b0\u4e86 <code>Throwable<\/code> \u63a5\u53e3\uff0c\u53ef\u4ee5\u66f4\u4e00\u81f4\u5730\u5904\u7406\u4e0d\u540c\u7c7b\u578b\u7684\u9519\u8bef\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8bed\u6cd5\u548c\u884c\u4e3a\u53d8\u5316<\/strong>\uff1a<\/p>\n<ul>\n<li><strong>\u51fd\u6570\u53c2\u6570\u548c\u8fd4\u56de\u503c\u7684\u7c7b\u578b\u68c0\u67e5<\/strong>\uff1aPHP 7 \u5bf9\u4e8e\u53c2\u6570\u7c7b\u578b\u548c\u8fd4\u56de\u7c7b\u578b\u7684\u68c0\u67e5\u66f4\u52a0\u4e25\u683c\uff0c\u4ee3\u7801\u4e0d\u5339\u914d\u65f6\u4f1a\u629b\u51fa <code class=\"prettyprint\" >TypeError<\/code> \u5f02\u5e38\uff0c\u907f\u514d\u4e86\u5728 PHP 5 \u4e2d\u5e38\u89c1\u7684\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362\u9519\u8bef\u3002<\/li>\n<li><strong>\u81ea\u52a8\u53d8\u91cf\u521d\u59cb\u5316<\/strong>\uff1aPHP 7 \u4e2d\uff0c\u67d0\u4e9b\u672a\u521d\u59cb\u5316\u7684\u53d8\u91cf\u4f1a\u629b\u51fa\u8b66\u544a\uff0c\u8fd9\u8981\u6c42\u5f00\u53d1\u8005\u5fc5\u987b\u663e\u5f0f\u521d\u59cb\u5316\u53d8\u91cf\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>3. \u5b89\u5168\u6027<\/h2>\n<ul>\n<li>\n<p><strong>\u66f4\u4e25\u683c\u7684\u7c7b\u578b\u68c0\u67e5<\/strong>\uff1a<\/p>\n<ul>\n<li>PHP 7 \u5f15\u5165\u4e86\u66f4\u4e25\u683c\u7684\u7c7b\u578b\u68c0\u67e5\uff0c\u51cf\u5c11\u4e86\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362\u548c\u7c7b\u578b\u4e0d\u5339\u914d\u5e26\u6765\u7684\u6f5c\u5728\u6f0f\u6d1e\uff0c\u589e\u5f3a\u4e86\u4ee3\u7801\u7684\u5b89\u5168\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5185\u5b58\u7ba1\u7406\u4f18\u5316<\/strong>\uff1a<\/p>\n<ul>\n<li>PHP 7 \u5728\u5185\u5b58\u7ba1\u7406\u65b9\u9762\u8fdb\u884c\u4e86\u663e\u8457\u6539\u8fdb\uff0c\u7279\u522b\u662f\u5728\u5783\u573e\u56de\u6536\u548c\u5185\u5b58\u5206\u914d\u65b9\u9762\u3002\u901a\u8fc7\u51cf\u5c11\u5185\u5b58\u6cc4\u6f0f\u548c\u63d0\u5347\u5185\u5b58\u56de\u6536\u6548\u7387\uff0cPHP 7 \u5728\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u5e94\u7528\u4e2d\u8868\u73b0\u66f4\u52a0\u7a33\u5b9a\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5b89\u5168\u66f4\u65b0<\/strong>\uff1a<\/p>\n<ul>\n<li>PHP 7 \u4fee\u590d\u4e86\u591a\u4e2a\u5b89\u5168\u6f0f\u6d1e\uff0c\u5e76\u5f3a\u5316\u4e86\u5bf9\u73b0\u4ee3\u52a0\u5bc6\u7b97\u6cd5\u548c\u534f\u8bae\u7684\u652f\u6301\uff0c\u4f7f\u5f97 PHP \u5e94\u7528\u5728\u5b89\u5168\u6027\u65b9\u9762\u66f4\u5177\u4fdd\u969c\u3002<\/li>\n<li>PHP 7 \u5f15\u5165\u4e86\u66f4\u5b89\u5168\u7684\u9ed8\u8ba4\u914d\u7f6e\uff0c\u907f\u514d\u4e86\u8bb8\u591a\u6f5c\u5728\u7684\u5b89\u5168\u95ee\u9898\uff0c\u5982\u8de8\u7ad9\u811a\u672c\uff08XSS\uff09\u548c SQL \u6ce8\u5165\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>4. \u6027\u80fd<\/h2>\n<ul>\n<li>\n<p><strong>Zend \u5f15\u64ce\u4f18\u5316<\/strong>\uff1a<\/p>\n<ul>\n<li>PHP 7 \u5bf9 <strong>Zend \u5f15\u64ce<\/strong> \u8fdb\u884c\u4e86\u91cd\u6784\u548c\u4f18\u5316\uff0c\u663e\u8457\u63d0\u9ad8\u4e86\u6267\u884c\u901f\u5ea6\u3002PHP 7 \u7684\u6027\u80fd\u6bd4 PHP 5 \u5feb 2 \u5230 3 \u500d\u3002<\/li>\n<li>\u5f15\u5165\u4e86 <strong>OPcache<\/strong>\uff08\u5b57\u8282\u7801\u7f13\u5b58\uff09\u4f5c\u4e3a\u9ed8\u8ba4\u914d\u7f6e\uff0c\u51cf\u5c11\u4e86\u91cd\u590d\u7f16\u8bd1\u811a\u672c\u7684\u5f00\u9500\uff0c\u63d0\u5347\u4e86\u811a\u672c\u7684\u52a0\u8f7d\u548c\u6267\u884c\u901f\u5ea6\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5185\u5b58\u4f18\u5316<\/strong>\uff1a<\/p>\n<ul>\n<li>PHP 7 \u5728\u5185\u5b58\u6d88\u8017\u65b9\u9762\u8fdb\u884c\u4e86\u5927\u5e45\u4f18\u5316\uff0c\u51cf\u5c11\u4e86\u5185\u5b58\u4f7f\u7528\uff0c\u4f7f\u5f97 PHP \u5e94\u7528\u5728\u5904\u7406\u5927\u91cf\u8bf7\u6c42\u65f6\u80fd\u591f\u66f4\u6709\u6548\u5730\u5229\u7528\u7cfb\u7edf\u8d44\u6e90\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5783\u573e\u56de\u6536<\/strong>\uff1a<\/p>\n<ul>\n<li>PHP 7 \u6539\u8fdb\u4e86\u5783\u573e\u56de\u6536\u673a\u5236\uff0c\u4f18\u5316\u4e86\u5185\u5b58\u7ba1\u7406\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u5bf9\u8c61\u7684\u5f15\u7528\u8ba1\u6570\u65f6\uff0c\u51cf\u5c11\u4e86\u5185\u5b58\u6cc4\u6f0f\u7684\u98ce\u9669\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>5. \u751f\u6001<\/h2>\n<ul>\n<li>\n<p><strong>Composer \u652f\u6301<\/strong>\uff1a<\/p>\n<ul>\n<li>PHP 7 \u5bf9 <strong>Composer<\/strong>\uff08PHP \u7684\u4f9d\u8d56\u7ba1\u7406\u5de5\u5177\uff09\u63d0\u4f9b\u4e86\u66f4\u52a0\u5b8c\u6574\u548c\u7a33\u5b9a\u7684\u652f\u6301\u3002\u7531\u4e8e PHP 7 \u5f15\u5165\u4e86\u4e25\u683c\u7684\u7c7b\u578b\u68c0\u67e5\u548c\u66f4\u5f3a\u7684\u529f\u80fd\u7279\u6027\uff0cComposer \u80fd\u591f\u5e2e\u52a9\u5f00\u53d1\u8005\u7ba1\u7406\u7b2c\u4e09\u65b9\u5e93\u3001\u81ea\u52a8\u52a0\u8f7d\u548c\u7248\u672c\u63a7\u5236\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u73b0\u4ee3\u6846\u67b6\u652f\u6301<\/strong>\uff1a<\/p>\n<ul>\n<li>\u5728 PHP 7 \u53d1\u5e03\u540e\uff0c<strong>Laravel<\/strong>\u3001<strong>Symfony<\/strong> \u7b49\u73b0\u4ee3 PHP \u6846\u67b6\u5f00\u59cb\u5e7f\u6cdb\u652f\u6301 PHP 7\uff0c\u5e76\u5229\u7528 PHP 7 \u7684\u65b0\u7279\u6027\uff08\u5982\u7c7b\u578b\u58f0\u660e\u3001\u6027\u80fd\u4f18\u5316\u7b49\uff09\u6765\u63d0\u5347\u5f00\u53d1\u6548\u7387\u548c\u5e94\u7528\u6027\u80fd\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>PSR \u6807\u51c6<\/strong>\uff1a<\/p>\n<ul>\n<li>PHP 7 \u9f13\u52b1\u9075\u5faa <strong>PSR-1<\/strong>\u3001<strong>PSR-4<\/strong> \u7b49 PHP \u6807\u51c6\uff0c\u63a8\u52a8\u4e86\u81ea\u52a8\u52a0\u8f7d\u548c\u4f9d\u8d56\u6ce8\u5165\u7b49\u73b0\u4ee3\u5f00\u53d1\u65b9\u5f0f\u7684\u666e\u53ca\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5bb9\u5668\u5316\u4e0e\u4e91\u652f\u6301<\/strong>\uff1a<\/p>\n<ul>\n<li>PHP 7 \u63d0\u9ad8\u4e86\u5bf9\u5bb9\u5668\u5316\uff08\u5982 Docker\uff09\u548c\u4e91\u5e73\u53f0\uff08\u5982 AWS\u3001Azure\uff09\u8fd0\u884c\u65f6\u73af\u5883\u7684\u652f\u6301\uff0c\u589e\u5f3a\u4e86 PHP \u5728\u73b0\u4ee3\u5f00\u53d1\u67b6\u6784\u4e2d\u7684\u9002\u7528\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u603b\u7ed3\uff1aPHP 7 \u5347\u7ea7\u5e26\u6765\u7684\u4e3b\u8981\u53d8\u5316<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u7ef4\u5ea6<\/th>\n<th>PHP 7 \u7684\u4e3b\u8981\u53d8\u5316<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>\u529f\u80fd\u6027<\/strong><\/td>\n<td>\u5f15\u5165\u7c7b\u578b\u58f0\u660e\u3001\u533f\u540d\u7c7b\u3001Null \u5408\u5e76\u64cd\u4f5c\u7b26\u7b49\u65b0\u7279\u6027<\/td>\n<\/tr>\n<tr>\n<td><strong>\u517c\u5bb9\u6027<\/strong><\/td>\n<td>\u79fb\u9664 <code class=\"prettyprint\" >mysql_*<\/code> \u7cfb\u5217\u51fd\u6570\u3001<code>ereg<\/code> \u6269\u5c55\uff0c\u6539\u8fdb\u9519\u8bef\u5904\u7406\u673a\u5236<\/td>\n<\/tr>\n<tr>\n<td><strong>\u5b89\u5168\u6027<\/strong><\/td>\n<td>\u4e25\u683c\u7c7b\u578b\u68c0\u67e5\uff0c\u5185\u5b58\u7ba1\u7406\u4f18\u5316\uff0c\u63d0\u9ad8\u4e86\u6574\u4f53\u5b89\u5168\u6027\u548c\u7a33\u5b9a\u6027<\/td>\n<\/tr>\n<tr>\n<td><strong>\u6027\u80fd<\/strong><\/td>\n<td>\u6027\u80fd\u63d0\u5347 2-3 \u500d\uff0c\u5185\u5b58\u4f18\u5316\uff0cOPcache \u9ed8\u8ba4\u542f\u7528<\/td>\n<\/tr>\n<tr>\n<td><strong>\u751f\u6001<\/strong><\/td>\n<td>Composer \u5b8c\u5584\u652f\u6301\uff0c\u73b0\u4ee3\u6846\u67b6\u548c PSR \u6807\u51c6\u5e7f\u6cdb\u91c7\u7528<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>PHP 7 \u7248\u672c\u5347\u7ea7\u5206\u6790 \u4e94\u4e2a\u7ef4\u5ea6\u5206\u6790\u4e00\u4e0bPHP7\u7684\u53d8\u5316 1.\u529f\u80fd\u6027 2.\u517c\u5bb9\u6027 3.\u5b89\u5168\u6027 4.\u6027\u80fd 5.\u751f [&hellip;]<\/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":[],"_links":{"self":[{"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/posts\/587"}],"collection":[{"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=587"}],"version-history":[{"count":3,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/posts\/587\/revisions"}],"predecessor-version":[{"id":590,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/posts\/587\/revisions\/590"}],"wp:attachment":[{"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}