{"id":220619,"date":"2020-11-19T19:36:48","date_gmt":"2020-11-19T11:36:48","guid":{"rendered":"http:\/\/4563.org\/?p=220619"},"modified":"2020-11-19T19:36:48","modified_gmt":"2020-11-19T11:36:48","slug":"webstorm-%e5%86%99-nodejs%ef%bc%8c%e5%af%b9%e8%b1%a1%e5%8a%a8%e6%80%81%e6%b7%bb%e5%8a%a0%e7%9a%84%e7%9a%84%e5%b1%9e%e6%80%a7%e6%b2%a1%e6%9c%89%e6%8f%90%e7%a4%ba%e5%92%8c%e8%87%aa%e5%8a%a8%e8%a1%a5","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=220619","title":{"rendered":"webstorm \u5199 nodejs\uff0c\u5bf9\u8c61\u52a8\u6001\u6dfb\u52a0\u7684\u7684\u5c5e\u6027\u6ca1\u6709\u63d0\u793a\u548c\u81ea\u52a8\u8865\u5168\u600e\u4e48\u529e"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  webstorm \u5199 nodejs\uff0c\u5bf9\u8c61\u52a8\u6001\u6dfb\u52a0\u7684\u7684\u5c5e\u6027\u6ca1\u6709\u63d0\u793a\u548c\u81ea\u52a8\u8865\u5168\u600e\u4e48\u529e               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4e00\u4e2a\u6ce2\u6d6a\u7ebf\u5728\u90a3 \u770b\u7740\u597d\u96be\u53d7<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>13<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4444869\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : maocat <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u52a8\u6001\u8bed\u8a00\u5199\u4e60\u60ef\u5c31\u597d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4444870\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @maocat \u554a\u8fd9 \u8fd9\u4e48\u60e8\u7684\u5417 \u73b0\u5728\u7684 ide \u4e0d\u662f\u633a\u667a\u80fd\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4444871\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zachlhb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zxCoder \u52a8\u6001\u6dfb\u52a0\u7684\u5c5e\u6027\u5565 ide \u90fd\u5206\u6790\u4e0d\u51fa\u6765\uff0c\u56e0\u4e3a ide \u4e0d\u4f1a\u81ea\u5df1\u53bb\u8dd1\u4f60\u7684\u7a0b\u5e8f\uff0c\u7a0b\u5e8f\u90fd\u6ca1\u8dd1\uff0c\u5f53\u7136\u626b\u63cf\u4e0d\u51fa\u6765\u4f60\u7684\u5c5e\u6027                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4444872\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : BingoXuan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6240\u4ee5 typescript \u771f\u7684\u662f\u500b\u597d\u767c\u660e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4444873\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zachlhb \u6ca1\u6709\u76f8\u5173\u5de5\u5177\u53ef\u4ee5\u5b9e\u65f6\u626b\u63cf\u6e90\u7801\uff0c\u6bd4\u5982\u770b\u8fd9\u4e2a\u5bf9\u8c61\u5728\u54ea\u7ed1\u5b9a\u4e86\u54ea\u4e9b\u65b0\u7684\u5c5e\u6027\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4444874\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @BingoXuan ts \u80fd\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u5417\uff1f\u597d\u5947                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4444875\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : noe132 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             const p = confirm()<br \/>if (p) obj[p] = 1<\/p>\n<p>\u4f60\u6765\u5206\u6790\u5206\u6790 obj \u5bf9\u8c61\u6709\u5565\u5c5e\u6027                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4444876\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rbe <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zxCoder #6 ts \u5199\u4e86\u7c7b\u578b\u58f0\u660e\uff0c\u6216\u8005\u4ece\u4e0a\u4e0b\u6587\u80fd\u63a8\u65ad\u51fa\u7c7b\u578b\u65f6\uff0c\u5c31\u53ef\u4ee5\u63d0\u793a\u3002ts \u5bf9 jsdoc \u652f\u6301\u4e5f\u5f88\u597d\uff0c\u5728 vscode \u91cc\u5199 js + @type \u58f0\u660e\u4e3a ts \u7c7b\u578b\u7684 jsdoc\uff0c\u4e5f\u80fd\u505a\u5230\u5c5e\u6027\u63d0\u793a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4444877\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : BingoXuan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zxCoder <br \/>ts \u5176\u5be6\u5c31\u662f\u7d66\u52d5\u614b\u8a9e\u8a00\u52a0\u4e0a\u975c\u614b\u5206\u6790\uff0c\u8b93\u4f60\u80fd\u5728\u7de8\u5beb\u7a0b\u5e8f\u6642\u5019\u505a\u597d\u4e00\u5b9a\u7d04\u675f\uff0c\u4e0d\u5bb9\u6613\u51fa bug \u3002\u9019\u4e5f\u5c31\u662f\u70ba\u4ec0\u9ebc\u6211\u8a8d\u70ba python3.7 \u624d\u662f\u771f\u6b63\u7684 python3\uff0c\u56e0\u70ba\u6709\u63d0\u4f9b typing hint \u4f86\u505a\u975c\u614b\u5206\u6790\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4444878\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : johnnyNg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0a ts                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4444879\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Immortal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ts ts ts                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4444880\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : libook <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3a\u4e86\u63d0\u5347\u4ee3\u7801\u53ef\u8bfb\u6027\uff0c\u4e5f\u4e3a\u4e86\u8ba9 IDE \u66f4\u51c6\u786e\u8bc6\u522b\u5bf9\u8c61\u7ed3\u6784\uff0c\u53ef\u4ee5\u8003\u8651\u628a\u52a8\u6001\u6dfb\u52a0\u7684\u5c5e\u6027\u505a\u6210\u786e\u5b9a\u6027\u7684\uff0c\u6bd4\u5982\u58f0\u660e\u7684\u65f6\u5019\u5c31\u5305\u542b\u8fd9\u4e2a\u5b57\u6bb5\u3002<br \/>\u7528\u6ce8\u91ca\u5199\u597d JSDoc \u3001ESDoc\uff0c\u628a\u5177\u5907\u54ea\u4e9b\u5c5e\u6027\u5199\u6e05\u695a\u3002<br \/>\u6216\u8005\u4f7f\u7528 TS \u7684*.d.ts \u6587\u4ef6\uff08 JS \u9879\u76ee\u4e5f\u53ef\u4ee5\u7528\uff09\uff0c\u548c\u4e0a\u9762\u65b9\u6cd5\u4e00\u6837\u90fd\u662f\u8ba9 IDE \u77e5\u9053\u5bf9\u8c61\u6709\u54ea\u4e9b\u5c5e\u6027\u3002<br \/>\u5982\u679c\u662f\u516c\u5171\u5e93\u7684\u8bdd\uff0c\u53ef\u4ee5\u5728 Preferences =\u300b Languages &amp; Frameworks =\u300b JavaScript =\u300b Libraries \u91cc\u6dfb\u52a0\u76f8\u5e94\u5e93\u7684\u58f0\u660e\u6587\u4ef6\uff0c\u5b9e\u9645\u4e0a\u548c\u7528 TS \u7684*.d.ts \u662f\u7b49\u4ef7\u7684\u3002\u5f88\u591a\u4eba\u7528 idea \u4e00\u5f00\u59cb\u5199\u9879\u76ee\u8fde Node \u5185\u7f6e API \u90fd\u4f1a\u6709\u6ce2\u6d6a\u7ebf\uff08 WebStorm \u53ef\u80fd\u4e0d\u4f1a\u6709\u8fd9\u4e2a\u60c5\u51b5\uff09\uff0c\u9700\u8981\u5728 Preferences =\u300b Languages &amp; Frameworks =\u300b Node.js and NPM \u91cc\u52fe\u9009 Coding assistance for Node.js \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4444881\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zachlhb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zxCoder \u6ca1\u6709\uff0c\u626b\u63cf\u7684\u90fd\u662f\u9759\u6001\u5c5e\u6027\u65b9\u6cd5\uff0c\u4f60\u52a8\u6001\u6dfb\u52a0\u7684\u626b\u63cf\u4e0d\u5230                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>webstorm \u5199 nodejs&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/220619"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=220619"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/220619\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=220619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=220619"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=220619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}