{"id":581,"date":"2020-05-15T09:21:26","date_gmt":"2020-05-15T01:21:26","guid":{"rendered":"https:\/\/liushiming.cn\/?p=581"},"modified":"2020-05-16T19:48:11","modified_gmt":"2020-05-16T11:48:11","slug":"nodejs-debug-guide-chrome-devtools","status":"publish","type":"post","link":"https:\/\/liushiming.cn\/article\/nodejs-debug-guide-chrome-devtools.html","title":{"rendered":"Node.js\u8c03\u8bd5\u6307\u5357-chrome devtools"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69fa05f31843e\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69fa05f31843e\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/liushiming.cn\/article\/nodejs-debug-guide-chrome-devtools.html\/#%E6%A6%82%E8%BF%B0\" >\u6982\u8ff0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/liushiming.cn\/article\/nodejs-debug-guide-chrome-devtools.html\/#%E7%A4%BA%E4%BE%8B%E9%A1%B9%E7%9B%AE\" >\u793a\u4f8b\u9879\u76ee<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/liushiming.cn\/article\/nodejs-debug-guide-chrome-devtools.html\/#%E8%83%8C%E6%99%AF%E7%9F%A5%E8%AF%86_%E2%80%93_Nodejs_%E8%B0%83%E8%AF%95%E7%9A%84%E5%9F%BA%E6%9C%AC%E5%8E%9F%E7%90%86\" >\u80cc\u666f\u77e5\u8bc6 &#8211; Node.js \u8c03\u8bd5\u7684\u57fa\u672c\u539f\u7406<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/liushiming.cn\/article\/nodejs-debug-guide-chrome-devtools.html\/#%E4%BD%BF%E7%94%A8_chrome_%E8%B0%83%E8%AF%95\" >\u4f7f\u7528 chrome \u8c03\u8bd5<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/liushiming.cn\/article\/nodejs-debug-guide-chrome-devtools.html\/#step1_%E6%89%93%E6%96%AD%E7%82%B9\" >step1: \u6253\u65ad\u70b9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/liushiming.cn\/article\/nodejs-debug-guide-chrome-devtools.html\/#step2_%E4%BD%BF%E7%94%A8_node_inspect_%E5%91%BD%E4%BB%A4%E8%BF%90%E8%A1%8C%E7%A8%8B%E5%BA%8F\" >step2: \u4f7f\u7528 node inspect \u547d\u4ee4\u8fd0\u884c\u7a0b\u5e8f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/liushiming.cn\/article\/nodejs-debug-guide-chrome-devtools.html\/#step3_%E4%BD%BF%E7%94%A8_chrome_devtools\" >step3: \u4f7f\u7528 chrome devtools<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/liushiming.cn\/article\/nodejs-debug-guide-chrome-devtools.html\/#step4_%E5%86%8D%E6%AC%A1%E8%B0%83%E8%AF%95\" >step4: \u518d\u6b21\u8c03\u8bd5<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/liushiming.cn\/article\/nodejs-debug-guide-chrome-devtools.html\/#%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99\" >\u53c2\u8003\u8d44\u6599<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E6%A6%82%E8%BF%B0\"><\/span>\u6982\u8ff0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5b66\u4e60\u4efb\u4f55\u4e00\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u8c03\u8bd5(debug)\u90fd\u662f\u5fc5\u987b\u638c\u63e1\u7684\u6280\u80fd\u3002<\/p>\n<p>Node.js \u7684\u8c03\u8bd5\uff0c\u6211\u89c9\u5f97\u6709\u51e0\u4e2a\u6bd4\u8f83\u597d\u7684\u9009\u62e9\uff0c\u6211\u5206\u5f00\u7528\u4e09\u7bc7\u6587\u7ae0\u6765\u8bf4\u660e\uff1a<\/p>\n<ul>\n<li><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/liushiming.cn\/article\/nodejs-debug-guide-chrome-devtools\/\">\u4f7f\u7528 chrome devtools \u8c03\u8bd5<\/a><\/li>\n<li><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/liushiming.cn\/article\/nodejs-debug-guide-vscode\/\">\u4f7f\u7528 vscode \u8c03\u8bd5<\/a><\/li>\n<li><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/liushiming.cn\/article\/nodejs-debug-guide-webstorm\/\">\u4f7f\u7528 webstorm \u8c03\u8bd5<\/a><\/li>\n<\/ul>\n<p>\u8c03\u8bd5\u5de5\u5177\u5bf9\u6bd4<\/p>\n<table>\n<thead>\n<tr>\n<th>\u8c03\u8bd5\u5de5\u5177<\/th>\n<th>\u7279\u70b9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>chrome devtools<\/td>\n<td>\u4f9d\u8d56\u5c11\uff0c\u539f\u751f\u652f\u6301<\/td>\n<\/tr>\n<tr>\n<td>vscode<\/td>\n<td>\u65b9\u4fbf\uff0c\u7f16\u7801\uff0c\u6253\u65ad\u70b9\uff0c\u8c03\u8bd5\u90fd\u5728\u4e00\u4e2a\u5de5\u5177\u5b8c\u6210<\/td>\n<\/tr>\n<tr>\n<td>webstorm<\/td>\n<td>\u6700\u65b9\u4fbf\uff0c\u529f\u80fd\u5f3a\u5927\uff0cjetbrains \u7cfb\u5217 IDE \u7edf\u4e00\u4f53\u9a8c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u672c\u6587\u63cf\u8ff0\u5982\u4f55\u4f7f\u7528 <code>chrome devtools<\/code> \u6765\u8c03\u8bd5 Node.js\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E7%A4%BA%E4%BE%8B%E9%A1%B9%E7%9B%AE\"><\/span>\u793a\u4f8b\u9879\u76ee<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u8ba9\u6211\u4eec\u4f7f\u7528\u4e00\u4e2a\u771f\u5b9e\u7684\u5c0f\u9879\u76ee\u6765\u8c03\u8bd5\uff0c\u66f4\u8d34\u8fd1\u5b9e\u9645<\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/github.com\/huahuayu\/node-cli-example\">\u8fd9\u91cc<\/a>\u662f\u6211\u7528 Node.js \u5199\u7684\u4e00\u4e2a\u4fbf\u7b7e\u7a0b\u5e8f\uff0c\u53ea\u6709\u4e24\u4e2a js \u6587\u4ef6\uff0c\u529f\u80fd\u662f\u5bf9\u4fbf\u7b7e\u7684\u589e\u5220\u6539\u67e5\u3002<\/p>\n<p>\u628a\u5b83\u514b\u9686\u4e0b\u6765:<\/p>\n<pre><code class=\"language-text \">git clone git@github.com:huahuayu\/node-cli-example.git\ncd node-cli-example\n<\/code><\/pre>\n<p>\u6211\u4eec\u53ea\u6267\u884c\u4e00\u4e2a\u529f\u80fd\uff1a\u589e\u52a0\u4e00\u4e2a\u4fbf\u7b7e\uff0c\u6807\u9898\u4e3a note1\uff0c\u5185\u5bb9\u4e3a&#8221;a lovely day&#8221;<\/p>\n<pre><code class=\"language-text \">node .\/bin\/note add --title=note1 --body=\"a lovely day\"\n<\/code><\/pre>\n<p>\u8f93\u51fa\u5e94\u8be5\u4e3a<\/p>\n<pre><code class=\"language-text \">note is added successfully! view at \/tmp\/note.json\n<\/code><\/pre>\n<p>\u8bf4\u660e\u4fbf\u7b7e\u5df2\u7ecf\u6dfb\u52a0\u6210\u529f\uff0c\u4e14\u5df2\u5199\u5165<code>\/tmp\/note.json<\/code>\u6587\u4ef6<\/p>\n<p>\u518d\u6b21\u6267\u884c\u540c\u6837\u7684\u6dfb\u52a0\u4fbf\u7b7e\u7684\u547d\u4ee4\uff0c\u4f1a\u62a5\u9519<code>duplicate title!<\/code>\uff0c\u8bf4\u660e\u4fbf\u7b7e\u6807\u9898\u91cd\u590d\u4e86\uff0c\u4e0d\u80fd\u6dfb\u52a0\u91cd\u590d\u7684\u6807\u9898\u3002<\/p>\n<pre><code class=\"language-text \">$ node .\/bin\/note add --title=note1 --body=\"a lovely day\"\nduplicate title!\n<\/code><\/pre>\n<p>\u6211\u4eec\u5c31\u6765\u8bd5\u7740\u8c03\u8bd5\u4e00\u4e0b\u8fd9\u4e2a\u9519\u8bef\uff0c\u770b\u4e0b\u5b83\u662f\u600e\u4e48\u62a5\u51fa\u6765\u7684<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E8%83%8C%E6%99%AF%E7%9F%A5%E8%AF%86_%E2%80%93_Nodejs_%E8%B0%83%E8%AF%95%E7%9A%84%E5%9F%BA%E6%9C%AC%E5%8E%9F%E7%90%86\"><\/span>\u80cc\u666f\u77e5\u8bc6 &#8211; Node.js \u8c03\u8bd5\u7684\u57fa\u672c\u539f\u7406<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5728\u8fd0\u884c Node.js \u6587\u4ef6\u65f6\uff0c\u52a0\u4e0a<code>--inspect<\/code>\u9009\u9879\uff0cNode.js \u5c31\u4f1a\u8d77\u4e00\u4e2a\u8fdb\u7a0b\u76d1\u542c\u8c03\u8bd5\u5ba2\u6237\u7aef\uff0c\u9ed8\u8ba4\u76d1\u542c<code>127.0.0.1:9229<\/code>\uff0c\u800c\u4e14\u6bcf\u4e2a\u8fdb\u7a0b\u8fd8\u88ab\u5206\u914d\u4e00\u4e2a\u60df\u4e00\u7684 UUID\u3002\u76d1\u542c\u5730\u5740\u5f62\u5982<code>ws:\/\/127.0.0.1:9229\/f9ce8dfa-ffff-4361-8155-3b1ed20df998<\/code>\u3002<\/p>\n<pre><code class=\"language-text \">$ node --inspect .\/bin\/note add --title=note1 --body=\"a lovely day\"\nDebugger listening on ws:\/\/127.0.0.1:9229\/f9ce8dfa-ffff-4361-8155-3b1ed20df998\nFor help, see: https:\/\/nodejs.org\/en\/docs\/inspector\nduplicate title!\n<\/code><\/pre>\n<p>\u60f3\u8981\u8c03\u8bd5 Node.js \u7a0b\u5e8f\uff0c\u8c03\u8bd5\u5ba2\u6237\u7aef\u5fc5\u987b\u8981\u77e5\u9053\u8fd9\u4e2a\u76d1\u542c\u5730\u5740\uff0c\u624d\u80fd\u76d1\u63a7\u7a0b\u5e8f\u7684\u6267\u884c\u3001\u8bbe\u7f6e\u65ad\u70b9\u7b49\u7b49\u3002\u8fd9\u5c31\u662f Node.js \u8c03\u8bd5\u7684\u57fa\u672c\u539f\u7406\u3002<\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/nodejs.org\/en\/docs\/guides\/debugging-getting-started\/#inspector-clients\">\u5b98\u65b9\u6587\u6863<\/a>\u4e0a\u4ecb\u7ecd\u7684\u8c03\u8bd5\u5ba2\u6237\u7aef\u6709\uff1a<\/p>\n<ul>\n<li><code>node-inspect<\/code>\u547d\u4ee4\u884c\u8c03\u8bd5\u5668<\/li>\n<li><code>chrome devtools<\/code>\u548c<code>microsoft edge<\/code>\u6d4f\u89c8\u5668<\/li>\n<li><code>visual studio code<\/code><\/li>\n<li><code>jetbrains webstorm<\/code><\/li>\n<li><code>gitpod<\/code><\/li>\n<li><code>eclipse<\/code><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8_chrome_%E8%B0%83%E8%AF%95\"><\/span>\u4f7f\u7528 chrome \u8c03\u8bd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u73b0\u5728\u6211\u4eec\u4f7f\u7528<code>chrome devtools<\/code>\u6765\u8c03\u8bd5<\/p>\n<h3><span class=\"ez-toc-section\" id=\"step1_%E6%89%93%E6%96%AD%E7%82%B9\"><\/span>step1: \u6253\u65ad\u70b9<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u6253\u5f00<code>service\/noteService.js<\/code>\u6587\u4ef6\uff0c\u5728\u9519\u8bef\u4fe1\u606f<code>duplicate title!<\/code>\u7684\u4e0a\u9762\uff0c\u52a0\u4e0a<code>debugger<\/code>\u5173\u952e\u5b57\u3002<\/p>\n<pre><code class=\"language-js \">\/**\n * \u65b0\u589enote\n * @param argv\n *\/\nconst add = (argv) =&gt; {\n  const notes = loadNotes(argv.notePath);\n\n  \/\/ \u627e\u51fa\u76f8\u540c\u6807\u9898\u7684note, \u5982\u679c\u6ca1\u6709\u91cd\u590d\u7684\u6807\u9898\uff0cduplicateTitleNote \u7b49\u4e8e undefined\n  const duplicateTitleNote = notes.find((note) =&gt; note.title === argv.title);\n\n  debugger;\n\n  if (duplicateTitleNote) {\n    console.log(\"duplicate title!\");\n    return;\n  }\n\n  notes.push({\uff0c\n    title: argv.title,\n    body: argv.body,\n  });\n\n  try {\n    fs.writeFileSync(argv.notePath, JSON.stringify(notes, null, 2));\n    console.log(\"note is added successfully! view at \" + argv.notePath);\n  } catch (e) {\n    console.log(\"fail to add note: \" + e.message);\n    process.exit(1);\n  }\n};\n<\/code><\/pre>\n<p>\u624b\u52a8\u52a0\u4e86\u8fd9\u4e2a\u65ad\u70b9\u540e\uff0c\u7b49\u4f1a\u8c03\u8bd5\u65f6\u7a0b\u5e8f\u8fd0\u884c\u5230\u8fd9\u91cc\u5c31\u4f1a\u505c\u4f4f\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"step2_%E4%BD%BF%E7%94%A8_node_inspect_%E5%91%BD%E4%BB%A4%E8%BF%90%E8%A1%8C%E7%A8%8B%E5%BA%8F\"><\/span>step2: \u4f7f\u7528 node inspect \u547d\u4ee4\u8fd0\u884c\u7a0b\u5e8f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u4f7f\u7528\u547d\u4ee4<code>node inspect .\/bin\/note add --title=note1 --body=\"a lovely day\"<\/code>\u8fd0\u884c\u7a0b\u5e8f\uff0c\u8fdb\u5165\u4e86 debug \u6a21\u5f0f<\/p>\n<p>\u7a0b\u5e8f\u8fd0\u884c\u5230\u7b2c\u4e00\u884c\u5c31\u505c\u4f4f\u4e86\uff0c\u7b49\u5f85\u4e0b\u4e00\u6b65\u6307\u4ee4<\/p>\n<pre><code class=\"language-text \">$ node inspect .\/bin\/note add --title=note1 --body=\"a lovely day\"\n&lt; Debugger listening on ws:\/\/127.0.0.1:9229\/a59eb45e-26c9-4ad4-afa0-83c4d598a5cf\n&lt; For help, see: https:\/\/nodejs.org\/en\/docs\/inspector\n&lt; Debugger attached.\nBreak on start in bin\/note:2\n  1 #!\/usr\/bin\/env node\n&gt; 2 const yargs = require(\"yargs\");\n  3 const noteService = require(\"..\/service\/noteService\");\n  4 const fs = require(\"fs\");\ndebug&gt;\n<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"step3_%E4%BD%BF%E7%94%A8_chrome_devtools\"><\/span>step3: \u4f7f\u7528 chrome devtools<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u6253\u5f00 chrome\uff0c\u8bbf\u95ee<code>chrome:\/\/inspect<\/code><\/p>\n<p>\u53ef\u4ee5\u770b\u5230 chrome \u5df2\u7ecf\u6355\u83b7\u5230\u4e86\u8c03\u8bd5\u8bf7\u6c42<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.liushiming.cn\/img\/20200514211537.png\" alt=\"\" \/><\/p>\n<p>\u70b9\u51fb<code>inspect<\/code>\u5c31\u53ef\u4ee5\u8fdb\u5165<code>chrome devtools<\/code><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.liushiming.cn\/img\/20200514211930.png\" alt=\"\" \/><\/p>\n<p>\u5bf9\u7167\u4e0a\u56fe\uff0c\u4ecb\u7ecd\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u8fd0\u884c\u63a7\u5236\u533a<\/li>\n<li>watch \u67e5\u770b\u53d8\u91cf<\/li>\n<li>\u65ad\u70b9\u5217\u8868<\/li>\n<li>\u7a0b\u5e8f\u76ee\u524d\u8fd0\u884c\u5230\u7684\u4f4d\u7f6e<\/li>\n<li>\u9879\u76ee\u6587\u4ef6\u533a\uff0c\u8981\u81ea\u5df1\u6dfb\u52a0\u9879\u76ee\u6839\u76ee\u5f55\u8fdb\u6765<\/li>\n<li>\u63a7\u5236\u53f0<\/li>\n<\/ol>\n<p>\u70b9\u4e00\u4e0b 1 \u533a\u7684\u8fd0\u884c\u6309\u94ae\uff0c\u7a0b\u5e8f\u5c31\u4f1a\u8fd0\u884c\u5230\u65ad\u70b9\uff0cwatch <code>duplicateTitleNote<\/code>\u53d1\u73b0\u786e\u5b9e\u662f\u91cd\u590d\u4e86<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.liushiming.cn\/img\/20200514212623.png\" alt=\"\" \/><\/p>\n<p>\u6309\u4e0b <code>f8<\/code> \u6216<code>command + \\<\/code>\u7ee7\u7eed\u8fd0\u884c\u7a0b\u5e8f\u81f3\u7ed3\u675f<\/p>\n<h3><span class=\"ez-toc-section\" id=\"step4_%E5%86%8D%E6%AC%A1%E8%B0%83%E8%AF%95\"><\/span>step4: \u518d\u6b21\u8c03\u8bd5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>debug<\/code>\u7ed3\u675f\u540e\uff0c\u60f3\u518d\u6b21\u8c03\u8bd5\uff0c\u5728<code>debug<\/code>\u547d\u4ee4\u884c\u5904\u518d\u6572\u4e00\u4e2a &#8220;restart&#8221; \u5373\u53ef\uff0c\u53c8\u53ef\u4ee5\u5728 chrome \u8c03\u8bd5\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.liushiming.cn\/img\/20200514213330.png\" alt=\"\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99\"><\/span>\u53c2\u8003\u8d44\u6599<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/nodejs.org\/en\/docs\/guides\/debugging-getting-started\/\">Node.js Debugging Guide<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u662f\u300aNode.js\u8c03\u8bd5\u6307\u5357\u300b\u7cfb\u5217\u6587\u7ae0\u4e09\u7bc7\u4e2d\u7684\u7b2c\u4e00\u7bc7\uff0c chrome \u8c03\u8bd5 Node.js \u7a0b\u5e8f\u6559\u7a0b<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"","footnotes":""},"categories":[176,170,146],"tags":[178,180,179,171,147,159,31,149,177],"class_list":["post-581","post","type-post","status-publish","format-standard","hentry","category-chrome","category-javascript","category-node","tag-chrome","tag-debug","tag-devtools","tag-javascript","tag-node","tag-nodejs","tag-vscode","tag-webstorm","tag-177"],"modified_by":"Shiming","_links":{"self":[{"href":"https:\/\/liushiming.cn\/wp-json\/wp\/v2\/posts\/581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liushiming.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liushiming.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liushiming.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/liushiming.cn\/wp-json\/wp\/v2\/comments?post=581"}],"version-history":[{"count":12,"href":"https:\/\/liushiming.cn\/wp-json\/wp\/v2\/posts\/581\/revisions"}],"predecessor-version":[{"id":629,"href":"https:\/\/liushiming.cn\/wp-json\/wp\/v2\/posts\/581\/revisions\/629"}],"wp:attachment":[{"href":"https:\/\/liushiming.cn\/wp-json\/wp\/v2\/media?parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liushiming.cn\/wp-json\/wp\/v2\/categories?post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/liushiming.cn\/wp-json\/wp\/v2\/tags?post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}