{"id":192787,"date":"2020-06-12T10:00:01","date_gmt":"2020-06-12T02:00:01","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=192787"},"modified":"2020-06-01T09:29:36","modified_gmt":"2020-06-01T01:29:36","slug":"node-excellent-framework","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/node-excellent-framework.html","title":{"rendered":"\u4e00\u6587\u770b\u660e\u767d\u8c01\u624d\u662fNode.js\u7684\u4f18\u79c0\u6846\u67b6"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u9996\u5148\uff0c\u6846\u67b6\u7684\u76ee\u7684\u662f\u5e2e\u52a9\u4f60\u5728\u4ece\u5934\u5f00\u59cb\u6784\u5efaweb\u5e94\u7528\u7a0b\u5e8f\u65f6\u514b\u670d\u4e00\u4e9b\u5e38\u89c1\u7684\u5f00\u53d1\u6311\u6218\u3002\u5728\u4e3a\u81ea\u5df1\u9009\u62e9Node.js\u6846\u67b6\u4e4b\u524d\u5e94\u8003\u8651\u54ea\u4e9b\u4e8b\u9879\uff1f\u4e3a\u4e86\u5e2e\u52a9\u4f60\u56de\u7b54\u8fd9\u4e2a\u95ee\u9898\uff0c\u4eca\u5929\uff0c\u6211\u5c06\u4ecb\u7ecd5\u4e2a\u4f18\u79c0\u7684Node.js\u6846\u67b6\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"
\nFastify\u662fExpress\u7684\u4e24\u500d<\/p>\n

\u9996\u5148\uff0c\u6846\u67b6\u7684\u76ee\u7684\u662f\u5e2e\u52a9\u4f60\u5728\u4ece\u5934\u5f00\u59cb\u6784\u5efaweb\u5e94\u7528\u7a0b\u5e8f\u65f6\u514b\u670d\u4e00\u4e9b\u5e38\u89c1\u7684\u5f00\u53d1\u6311\u6218\u3002\u5728\u4e3a\u81ea\u5df1\u9009\u62e9Node.js\u6846\u67b6\u4e4b\u524d\u5e94\u8003\u8651\u54ea\u4e9b\u4e8b\u9879?\u4e3a\u4e86\u5e2e\u52a9\u4f60\u56de\u7b54\u8fd9\u4e2a\u95ee\u9898\uff0c\u4eca\u5929\uff0c\u6211\u5c06\u4ecb\u7ecd5\u4e2a\u6700\u4f73\u7684Node.js\u6846\u67b6\u3002<\/p>\n

\"\"
\n\u8ba9\u6211\u4eec\u73b0\u5728\u5f00\u59cb\u3002<\/p>\n

Express.js \u2014\u2014\u7528\u4e8eNode.js\u7684\u5feb\u901f\uff0c\u4e0d\u53d7\u9650\u5236\u7684\u7b80\u7ea6Web\u6846\u67b6<\/strong><\/div>\n

\u5982\u679c\u4f60\u662fNode.js\u7684\u65b0\u624b\uff0c\u5219\u5e94\u8be5\u4ece\u6b64\u6846\u67b6\u5f00\u59cb\uff0c\u5b83\u662fNode.Js\u7684\u6700\u8457\u540d\u7684\u6846\u67b6\u4e4b\u4e00\u3002
\n\"\"<\/p>\n

\/ Express.js\u63d0\u4f9b\u54ea\u4e9b\u529f\u80fd?\/<\/strong><\/span><\/div>\n

Express\u662f\u4e00\u4e2a\u6700\u5c0f\u4e14\u7075\u6d3b\u7684Node.js Web\u5e94\u7528\u7a0b\u5e8f\u6846\u67b6\uff0c\u4e3aWeb\u548c\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u4e86\u4e00\u7ec4\u5f3a\u5927\u7684\u529f\u80fd\u3002<\/p>\n

\u5b83\u5141\u8bb8\u4f60\u7ed8\u5236\u5355\u9875\u9762\u548c\u591a\u9875\u9762\uff0c\u4ee5\u53ca\u4e0d\u540c\u7684web\u5e94\u7528\u7a0b\u5e8f\u3002
\n\u5b83\u5e26\u6709MVC(\u6a21\u578b-\u89c6\u56fe-\u63a7\u5236\u5668)\u3002
\n\u5141\u8bb8\u7528\u6237\u52a8\u6001\u5448\u73b0\u5927\u578bHTML\u9875\u9762\uff0c\u5b83\u8fd8\u5141\u8bb8\u4f60\u901a\u8fc7\u8bbe\u7f6e\u4e2d\u95f4\u4ef6\u6765\u54cd\u5e94HTTP\u8bf7\u6c42\u3002
\n\u5b83\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u8def\u7531\u8868\uff0c\u4e00\u7ec4\u8def\u7531\u5e93\uff0c\u8fd9\u4e9b\u5e93\u96c6\u57fa\u4e8eHTTP\u65b9\u6cd5\u6267\u884c\u5404\u79cdweb\u64cd\u4f5c\u3002
\n\u5b83\u8fd8\u5e26\u6709\u591a\u89c6\u56fe\u652f\u6301\u7cfb\u7edf\u3002\u6781\u5feb\u7684I\/O\u7ed9\u7528\u6237\u7559\u4e0b\u4e86\u6df1\u523b\u7684\u5370\u8c61\uff0c\u5b83\u5f3a\u5927\u7684API\u4f7f\u8def\u7531\u66f4\u5bb9\u6613\uff0c\u66f4\u5feb\u6377\u3002
\n\u5b83\u652f\u630123+\u6a21\u677f\u5f15\u64ce\uff0c\u7b80\u5355\u7684HTTP\u65b9\u6cd5\uff0c\u5f02\u6b65\u6027\uff0c\u5b83\u603b\u662f\u5173\u6ce8\u6027\u80fd\u3002<\/p>\n

\/ \u5982\u4f55\u5b89\u88c5Express.js?\/<\/strong><\/span><\/div>\n

\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06Express.js\u5b89\u88c5\u4e3a\u8f6f\u4ef6\u5305\u4f9d\u8d56\u9879\u3002<\/p>\n

npm install express --save \r\n<\/pre>\n

\u53e6\u5916\uff0c\u53ef\u4ee5\u4f7f\u7528express-generator\u547d\u4ee4\u884c\u5de5\u5177\u5feb\u901f\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u6846\u67b6\u3002<\/p>\n

npx express-generator \r\n<\/pre>\n

\u4f8b\u5982\uff0c\u4ee5\u4e0b\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3a myapp \u7684Express\u5e94\u7528\u7a0b\u5e8f\u3002\u8be5\u5e94\u7528\u7a0b\u5e8f\u5c06\u5728\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u7684\u540d\u4e3a myapp \u7684\u6587\u4ef6\u5939\u4e2d\u521b\u5efa\uff0c\u5e76\u4e14\u89c6\u56fe\u5f15\u64ce\u5c06\u8bbe\u7f6e\u4e3a Pug\u3002
\n\"\"
\nexpressjs\u4e3b\u9875\uff1ahttp:\/\/expressjs.com\/<\/p>\n

Koa.js \u2014\u2014 Node.js\u7684\u4e0b\u4e00\u4ee3Web\u6846\u67b6<\/strong><\/div>\n

\u5b83\u662f\u7531\u6784\u5efaExpress.js\u7684\u5f00\u53d1\u4eba\u5458\u8bbe\u8ba1\u7684\uff0c\u91cd\u70b9\u662fExpress.js\u4e2d\u6ca1\u6709\u63d0\u4f9b\u7684\u65b9\u6cd5\u5e93\u3002\u4e8b\u5b9e\u4e0a\uff0c\u5b83\u63d0\u9ad8\u4e86Web\u5e94\u7528\u7a0b\u5e8f\u7684\u8d28\u91cf\u548c\u9519\u8bef\u7ba1\u7406\u3002
\n\"\"<\/p>\n

\/ Koa.js\u63d0\u4f9b\u54ea\u4e9b\u529f\u80fd?\/<\/strong><\/span><\/div>\n

Koa.js\u53ef\u7528\u4e8e\u5f00\u53d1\u6f5c\u5728\u7684\u57fa\u4e8eWeb\u7684\u5e94\u7528\u7a0b\u5e8f\u548cAPI\u3002\u5b83\u5177\u6709\u4ee5\u4e0b\u529f\u80fd\u3002<\/p>\n

\u5b83\u5e26\u6709\u66f4\u591a\u7684\u81ea\u5b9a\u4e49\u9009\u9879\u3002
\n\u5141\u8bb8\u4f7f\u7528\u751f\u6210\u5668\uff0c\u9650\u5236\u4e86\u56de\u8c03\u7684\u4f7f\u7528\uff0c\u8fd9\u53cd\u8fc7\u6765\u53c8\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u4e00\u4e2a\u66f4\u597d\u7684\u9519\u8bef\u5904\u7406\u7cfb\u7edf\u3002
\n\u5b83\u5728\u6838\u5fc3\u4e2d\u6ca1\u6709\u6253\u5305\u4efb\u4f55\u4e2d\u95f4\u4ef6\u3002\u8fd9\u4f7f\u5f97\u4f7f\u7528Koa.js\u8fdb\u884c\u670d\u52a1\u5668\u7f16\u5199\u66f4\u5feb\uff0c\u66f4\u6709\u8da3\u3002
\nKoa.js\u9ed8\u8ba4\u63d0\u4f9b\u4e00\u4e9b\u7528\u4e8e\u5e38\u89c4\u4efb\u52a1\u7684\u6709\u7528\u7b56\u7565\uff0c\u4f8b\u5982\u7f13\u5b58\u7684\u65b0\u9c9c\u5ea6\uff0c\u5185\u5bb9\u534f\u5546\uff0c\u4ee3\u7406\u652f\u6301\u3002
\n\u5b83\u652f\u6301 async\/await \u5173\u952e\u5b57\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u6574\u9f50\u5730\u7ba1\u7406\u4f60\u7684\u4ee3\u7801\u3002Koa\u53ef\u4ee5\u968f\u65f6\u6e05\u7406\u4f60\u7684\u4ee3\u7801\u4e2d\u7531\u4e8e\u4efb\u4f55\u56de\u8c03\u800c\u9020\u6210\u7684\u6df7\u4e71\u3002<\/p>\n

\/ \u5982\u4f55\u5b89\u88c5Koa.js?\/<\/strong><\/span><\/div>\n

Koa\u8981\u6c42 node v7.6.0 \u6216\u66f4\u9ad8\u7248\u672c\u624d\u80fd\u652f\u6301ES2015\u548c\u5f02\u6b65\u529f\u80fd\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u81ea\u5df1\u559c\u6b22\u7684\u7248\u672c\u7ba1\u7406\u5668\u5feb\u901f\u5b89\u88c5\u53d7\u652f\u6301\u7684Node\u7248\u672c\u3002<\/p>\n

nvm install 7 \r\nnpm i koa \r\nnode my-koa-app.js \r\nKoa Github\uff1ahttps:\/\/github.com\/koajs\/koa\r\n<\/pre>\n

Hapi\u2014\u2014\u7b80\u5355\uff0c\u5b89\u5168\u7684\u6846\u67b6
\nHapi\u8bbe\u8ba1\u4e86\u4e0eExpress.js\u7c7b\u4f3c\u7684\u4f53\u7cfb\u7ed3\u6784\uff0c\u5e76\u7740\u91cd\u4e8e\u7f16\u5199\u66f4\u5c11\u7684\u4ee3\u7801\u3002\u5c3d\u7ba1Hapi.js\u662fWeb\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u6e90\u6846\u67b6\uff0c\u4f46Hapi.js\u8fd8\u662f\u670d\u52a1\u5668\u6846\u67b6\u3002
\n\"\"<\/p>\n

\/ Api\u63d0\u4f9b\u54ea\u4e9b\u529f\u80fd?\/<\/strong><\/span><\/div>\n

\u5b83\u4ee5\u6700\u5c0f\u7684\u5f00\u9500\u548c\u5b8c\u6574\u7684\u73b0\u6210\u529f\u80fd\u5e2e\u52a9\u6784\u5efa\u5f3a\u5927\u7684\u53ef\u6269\u5c55\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

\u5b83\u4e3a\u7528\u6237\u63d0\u4f9b\u8def\u7531\uff0cI\/O\u9a8c\u8bc1\u548c\u7f13\u5b58\u3002
\n\u901a\u8fc7\u63d0\u4f9b\u5f3a\u5927\u7684\u63d2\u4ef6\u7f51\u7edc\uff0c\u4f60\u53ef\u4ee5\u4eab\u53d7\u8fd9\u4e9b\u529f\u80fd\uff0c\u4ece\u800c\u4f7f\u7528Hapi.js\u4fee\u590d\u9519\u8bef\u5e76\u6dfb\u52a0\u65b0\u529f\u80fd\u65e2\u5feb\u901f\u53c8\u667a\u80fd\u3002
\n\u5b83\u5141\u8bb8\u7528\u6237\u5c06\u5176\u4e0eMySQL\uff0cMongoDB\u548cPostgres\u7ed3\u5408\u4f7f\u7528\uff0c\u4ee5\u521b\u5efa\u6f5c\u5728\u7684\u9759\u6001\u7f51\u7ad9\u3002
\n\u5b83\u901a\u8fc7\u5c06\u8bf7\u6c42\u4ece\u5176\u4e3b\u8981API\u8f6c\u53d1\u5230\u5176\u4ed6\u6765\u6e90\u6765\u5e2e\u52a9\u7528\u6237\u3002
\n\u5b83\u8fd8\u5141\u8bb8\u7528\u6237\u4eab\u53d7\u5b9e\u65f6\u804a\u5929\u5e94\u7528\u7a0b\u5e8f\u548c\u5176\u4ed6\u793e\u4ea4\u5e94\u7528\u7a0b\u5e8f\u3002
\n\u5b83\u5141\u8bb8\u5448\u73b0\u52a8\u6001\u5185\u5bb9\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u3002<\/p>\n

\/ \u5982\u4f55\u5b89\u88c5Hapi?\/<\/strong><\/span><\/div>\n

\u521b\u5efa\u4e00\u4e2a\u65b0\u76ee\u5f55 myapp\uff0c\u7136\u540e\u4ece\u90a3\u91cc\uff1a<\/p>\n

\u8fd0\u884c\uff1acd myapp\uff0c\u8fd9\u5c06\u8fdb\u5165\u521b\u5efa\u7684\u9879\u76ee\u6587\u4ef6\u5939\u3002
\n\u8fd0\u884c\uff1anpm init \u5e76\u6309\u7167\u63d0\u793a\u8fdb\u884c\u64cd\u4f5c\uff0c\u8fd9\u5c06\u4e3a\u4f60\u751f\u6210\u4e00\u4e2apackage.json\u6587\u4ef6\u3002
\n\u8fd0\u884c\uff1anpm install @hapi\/hapi\uff0c\u8fd9\u5c06\u5728\u4f60\u7684 package.json \u6587\u4ef6\u4e2d\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684hapi\u4f5c\u4e3a\u4f9d\u8d56\u9879\u3002
\n\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u57fa\u672c\u7684hapi\u670d\u52a1\u5668\u3002
\n\"\"
\nHapi\uff1ahttps:\/\/hapi.dev<\/p>\n

Fastify\u2014\u2014\u7528\u4e8eNode.js\u7684\u5feb\u901f\uff0c\u4f4e\u5f00\u9500\u7684Web\u6846\u67b6<\/strong><\/div>\n

Fastify\u662f\u53d7Hapi\u548cExpress\u542f\u53d1\u7684Node.js\u6846\u67b6\u3002\u5b83\u81ea\u8c6a\u5730\u4e3a\u5e9e\u5927\u7684\u7ec4\u7ec7\u548c\u4ea7\u54c1\u751f\u6001\u7cfb\u7edf\u63d0\u4f9b\u52a8\u529b\u3002
\n\"\"<\/p>\n

\/ Fastify\u63d0\u4f9b\u54ea\u4e9b\u529f\u80fd?\/<\/strong><\/span><\/div>\n

\u8fdb\u5165Fastify\u3002Fastify\u662f\u4e00\u4e2a\u9ad8\u5ea6\u4e13\u6ce8\u4e8e\u63d0\u4f9b\u6700\u597d\u7684\u5f00\u53d1\u8005\u4f53\u9a8c\u7684Web\u6846\u67b6\uff0c\u5b83\u7684\u5f00\u9500\u6700\u5c0f\uff0c\u63d2\u4ef6\u67b6\u6784\u5f3a\u5927\u3002\u5b83\u662f\u76ee\u524d\u6700\u5feb\u7684web\u6846\u67b6\u4e4b\u4e00\uff0cFastify\u7684\u901f\u5ea6\u662fExpress\u7684\u4e24\u500d\u3002<\/p>\n

\/ \u5982\u4f55\u5b89\u88c5Fastify?\/<\/strong><\/span><\/div>\n

\u4eceNPM\u5b89\u88c5Fastify<\/p>\n

npm install fastify \r\n<\/pre>\n

\u7136\u540e\u521b\u5efa server.js \u5e76\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\u3002
\n\"\"<\/p>\n

\u6700\u540e\uff0c\u542f\u52a8\u670d\u52a1\u5668\u3002<\/p>\n

node server \r\n<\/pre>\n

\u4f60\u53ef\u4ee5\u4f7f\u7528\u5b83\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n

$ curl http:\/\/localhost:3000 \r\n<\/pre>\n

\u5728Fastify\u4e2d\uff0c\u4f60\u7f16\u5199\u7684\u4ee3\u7801\u6bd4\u5728Express\u4e2d\u7f16\u5199\u7684\u4ee3\u7801\u5c11\u3002\u4f8b\u5982\uff0c\u5728Express\u4e2d\uff0c\u4f60\u9700\u8981\u5bfc\u5165\u5176\u4ed6\u7a0b\u5e8f\u5305\u6765\u5904\u7406JSON\u8bf7\u6c42\u548c\u54cd\u5e94\u3002\u5728Fastify\u4e2d\uff0c\u4f60\u53ea\u9700\u4f7f\u7528\u5bf9\u8c61\u5b57\u9762\u91cf\uff0c\u5e76\u4e14JSON\u90e8\u5206\u7531\u6846\u67b6\u81ea\u52a8\u5904\u7406\u3002<\/p>\n

Fastify\u4e3b\u9875\uff1ahttps:\/\/www.fastify.io\/<\/p>\n

Restify\u2014\u2014Node.js REST\u5f00\u53d1\u7684\u672a\u6765<\/strong><\/div>\n

Restify\u662fNode.JS\u7684\u8457\u540dREST API\u6846\u67b6\u3002
\n\"\"<\/p>\n

\/ Restify\u63d0\u4f9b\u54ea\u4e9b\u529f\u80fd?\/<\/strong><\/span><\/div>\n

Node.js web\u670d\u52a1\u6846\u67b6\uff0c\u4e3a\u6784\u5efa\u8bed\u4e49\u6b63\u786e\u7684RESTful web\u670d\u52a1\u8fdb\u884c\u4e86\u4f18\u5316\uff0c\u53ef\u4f9b\u5927\u89c4\u6a21\u751f\u4ea7\u4f7f\u7528\u3002restify\u5bf9\u5185\u7701\u548c\u6027\u80fd\u8fdb\u884c\u4e86\u4f18\u5316\uff0c\u5e76\u88ab\u7528\u4e8e\u5730\u7403\u4e0a\u4e00\u4e9b\u6700\u5927\u7684Node.js\u90e8\u7f72\u4e2d\u3002<\/p>\n

\u5b83\u662fNode.JS\u7684\u65e9\u671f\u6846\u67b6\u4e4b\u4e00\u3002
\n\u5b83\u4e0eHTTP\u52a8\u4f5c\u3001\u5faa\u73af\u8bf7\u6c42\u548c\u54cd\u5e94\u76f4\u63a5\u534f\u8c03\u5de5\u4f5c\u3002
\n\u5b83\u8fd8\u4e3aDTrace\u63d0\u4f9b\u81ea\u52a8\u652f\u6301\u3002
\n\u5b83\u63d0\u4f9b\u4e86\u5230Web\u548c\u5ba2\u6237\u7aef\u7ec4\u4ef6\u7684\u53cc\u5411\u901a\u4fe1\uff0c\u5b83\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5e7f\u64ad\u548c\u5b58\u50a8\u6570\u636e\u3002
\nRestify\u4f7f\u4f60\u53ef\u4ee5\u7acb\u5373\u7cfb\u7edf\u5730\u5904\u7406\u9519\u8bef\uff0c\u5b83\u63d0\u4f9b\u4e86\u591a\u4e2a\u9519\u8bef\u6355\u83b7\u529f\u80fd\uff0c\u53ef\u4ee5\u6355\u83b7\u53d1\u751f\u7684\u9519\u8bef\u3002<\/p>\n

\/ \u5982\u4f55\u5b89\u88c5Restify?\/<\/strong><\/span><\/div>\n

\u901a\u8fc7NPM\u5b89\u88c5<\/p>\n

npm install restify \r\n<\/pre>\n

\u8bbe\u7f6e\u4e00\u4e2a\u670d\u52a1\u5668\u662f\u5feb\u901f\u800c\u7b80\u5355\u7684\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684echo\u670d\u52a1\u5668\u3002
\n\"\"<\/p>\n

Restify\u4e3b\u9875\uff1ahttp:\/\/restify.com\/<\/p>\n

Node.js\u6846\u67b6\u5728\u73b0\u4ee3\u5e94\u7528\u7a0b\u5e8f\u7684\u53d1\u5c55\u4e2d\u4e00\u76f4\u53d1\u6325\u7740\u81f3\u5173\u91cd\u8981\u7684\u4f5c\u7528\u3002\u4f60\u5e94\u8be5\u5c1d\u8bd5\u4f7f\u7528\u672c\u6587\u4e2d\u6700\u4f73\u7684Node.js\u6846\u67b6\u5217\u8868\u3002<\/p>\n

\u6709\u7528\u5427?<\/p>\n","protected":false},"excerpt":{"rendered":"

Fastify\u662fExpress\u7684\u4e24\u500d \u9996\u5148\uff0c\u6846\u67b6\u7684\u76ee\u7684\u662f\u5e2e\u52a9\u4f60\u5728\u4ece\u5934\u5f00\u59cb\u6784\u5efaweb\u5e94\u7528\u7a0b\u5e8f\u65f6\u514b\u670d\u4e00\u4e9b\u5e38\u89c1\u7684\u5f00\u53d1 […]<\/p>\n","protected":false},"author":1898,"featured_media":192799,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[564],"class_list":["post-192787","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread","tag-node-js"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/192787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1898"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=192787"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/192787\/revisions"}],"predecessor-version":[{"id":192921,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/192787\/revisions\/192921"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/192799"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=192787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=192787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=192787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}