{"id":43458,"date":"2023-10-02T00:06:34","date_gmt":"2023-10-01T16:06:34","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=43458"},"modified":"2023-10-02T00:06:34","modified_gmt":"2023-10-01T16:06:34","slug":"edyckyzxdcktxfs","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/43458.html","title":{"rendered":"Electron\u8c03\u7528\u4e32\u53e3\uff1a\u4e00\u79cd\u65b0\u7684\u4e32\u53e3\u901a\u4fe1\u65b9\u5f0f"},"content":{"rendered":"

  \u4e32\u53e3\u662f\u4e00\u79cd\u53ef\u4ee5\u5b9e\u73b0\u8ba1\u7b97\u673a\u4e0e\u5916\u56f4\u8bbe\u5907\u4e4b\u95f4\u6570\u636e\u4ea4\u6362\u7684\u901a\u4fe1\u65b9\u5f0f\uff0c\u5b83\u901a\u8fc7\u4e32\u884c\u63a5\u53e3\u5c06\u6570\u636e\u4ee5\u5b57\u8282\u6d41\u7684\u5f62\u5f0f\u4f20\u8f93\u3002\u8fd1\u5e74\u6765\uff0c\u968f\u7740\u7535\u5b50\u6280\u672f\u7684\u53d1\u5c55\uff0c\u4e32\u53e3\u4e5f\u53d1\u751f\u4e86\u5de8\u5927\u53d8\u5316\uff0c\u5176\u4e2d\u6700\u91cd\u8981\u7684\u53d8\u5316\u5c31\u662fElectron\u8c03\u7528\u4e32\u53e3\u3002Electron\u8c03\u7528\u4e32\u53e3\u662f\u4e00\u79cd\u65b0\u7684\u4e32\u53e3\u901a\u4fe1\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u66f4\u597d\u5730\u6ee1\u8db3\u7528\u6237\u7684\u9700\u6c42\uff0c\u63d0\u9ad8\u4e32\u53e3\u901a\u4fe1\u7684\u6548\u7387\u3002<\/strong>\u672c\u6587\u5c06\u4ecb\u7ecdElectron\u8c03\u7528\u4e32\u53e3\u7684\u539f\u7406\u3001\u4f18\u70b9\u548c\u4f7f\u7528\u65b9\u6cd5\uff0c\u4ee5\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528\u8fd9\u79cd\u65b0\u7684\u4e32\u53e3\u901a\u4fe1\u65b9\u5f0f\u3002<\/p>\n

Electron\u8c03\u7528\u4e32\u53e3\u7684\u539f\u7406<\/h2>\n

  Electron\u8c03\u7528\u4e32\u53e3\u662f\u4e00\u79cd\u65b0\u7684\u4e32\u53e3\u901a\u4fe1\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u66f4\u597d\u5730\u6ee1\u8db3\u7528\u6237\u7684\u9700\u6c42\uff0c\u63d0\u9ad8\u4e32\u53e3\u901a\u4fe1\u7684\u6548\u7387\u3002<\/strong>\u5b83\u7684\u6838\u5fc3\u539f\u7406\u662f\u4f7f\u7528Electron\u6846\u67b6\u4e2d\u7684Node.js API\u6765\u5b9e\u73b0\u5bf9\u4e32\u53e3\u7684\u8c03\u7528\u3002Node.js API\u662f\u4e00\u79cd\u57fa\u4e8eJavaScript\u7684\u5e94\u7528\u7a0b\u5e8f\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u8ba9\u5f00\u53d1\u4eba\u5458\u66f4\u5bb9\u6613\u5730\u8bbf\u95ee\u548c\u63a7\u5236\u4e32\u53e3\u3002<\/p>\n

  Electron\u8c03\u7528\u4e32\u53e3\u7684\u4f18\u70b9<\/h3>\n

  Electron\u8c03\u7528\u4e32\u53e3\u7684\u4f18\u70b9\u6709\u5f88\u591a\uff0c\u9996\u5148\uff0c\u5b83\u53ef\u4ee5\u66f4\u5feb\u6377\u5730\u5b9e\u73b0\u4e32\u53e3\u901a\u4fe1\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u4f7f\u7528Node.js API\u6765\u8bbf\u95ee\u548c\u63a7\u5236\u4e32\u53e3\uff0c\u800c\u4e0d\u9700\u8981\u5f00\u53d1\u4eba\u5458\u7f16\u5199\u590d\u6742\u7684\u4ee3\u7801\u3002\u5176\u6b21\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u66f4\u8f7b\u677e\u5730\u63a7\u5236\u4e32\u53e3\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684API\u6765\u5b9e\u73b0\u5bf9\u4e32\u53e3\u7684\u63a7\u5236\u3002\u6700\u540e\uff0c\u5b83\u53ef\u4ee5\u66f4\u597d\u5730\u6ee1\u8db3\u7528\u6237\u7684\u9700\u6c42\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u66f4\u5feb\u6377\u5730\u5b9e\u73b0\u4e32\u53e3\u901a\u4fe1\uff0c\u5e76\u4e14\u53ef\u4ee5\u66f4\u8f7b\u677e\u5730\u63a7\u5236\u4e32\u53e3\u3002<\/p>\n

  \u5982\u4f55\u4f7f\u7528Electron\u8c03\u7528\u4e32\u53e3<\/h3>\n

  \u8981\u4f7f\u7528Electron\u8c03\u7528\u4e32\u53e3\uff0c\u9996\u5148\u9700\u8981\u5728Electron\u6846\u67b6\u4e2d\u5b89\u88c5Node.js API\uff0c\u7136\u540e\u4f7f\u7528Node.js API\u6765\u5b9e\u73b0\u5bf9\u4e32\u53e3\u7684\u8c03\u7528\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

    \n
  • \u6b65\u9aa41\uff1a\u5b89\u88c5Node.js API\u3002<\/li>\n
  • \u6b65\u9aa42\uff1a\u4f7f\u7528Node.js API\u6765\u5b9e\u73b0\u5bf9\u4e32\u53e3\u7684\u8c03\u7528\u3002<\/li>\n
  • \u6b65\u9aa43\uff1a\u4f7f\u7528Node.js API\u6765\u63a7\u5236\u4e32\u53e3\uff0c\u5b9e\u73b0\u4e32\u53e3\u901a\u4fe1\u3002<\/li>\n<\/ul>\n

    \u603b\u7ed3<\/h2>\n

      Electron\u8c03\u7528\u4e32\u53e3\u662f\u4e00\u79cd\u65b0\u7684\u4e32\u53e3\u901a\u4fe1\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u66f4\u597d\u5730\u6ee1\u8db3\u7528\u6237\u7684\u9700\u6c42\uff0c\u63d0\u9ad8\u4e32\u53e3\u901a\u4fe1\u7684\u6548\u7387\u3002<\/strong>\u5b83\u7684\u6838\u5fc3\u539f\u7406\u662f\u4f7f\u7528Electron\u6846\u67b6\u4e2d\u7684Node.js API\u6765\u5b9e\u73b0\u5bf9\u4e32\u53e3\u7684\u8c03\u7528\u3002Electron\u8c03\u7528\u4e32\u53e3\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u66f4\u5feb\u6377\u5730\u5b9e\u73b0\u4e32\u53e3\u901a\u4fe1\uff0c\u53ef\u4ee5\u66f4\u8f7b\u677e\u5730\u63a7\u5236\u4e32\u53e3\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u6ee1\u8db3\u7528\u6237\u7684\u9700\u6c42\u3002\u8981\u4f7f\u7528Electron\u8c03\u7528\u4e32\u53e3\uff0c\u9700\u8981\u5b89\u88c5Node.js API\uff0c\u7136\u540e\u4f7f\u7528Node.js API\u6765\u5b9e\u73b0\u5bf9\u4e32\u53e3\u7684\u8c03\u7528\uff0c\u6700\u540e\u4f7f\u7528Node.js API\u6765\u63a7\u5236\u4e32\u53e3\uff0c\u5b9e\u73b0\u4e32\u53e3\u901a\u4fe1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u4e32\u53e3\u662f\u4e00\u79cd\u53ef\u4ee5\u5b9e\u73b0\u8ba1\u7b97\u673a\u4e0e\u5916\u56f4\u8bbe\u5907\u4e4b\u95f4\u6570\u636e\u4ea4\u6362\u7684\u901a\u4fe1\u65b9\u5f0f\uff0c\u5b83\u901a\u8fc7\u4e32\u884c\u63a5\u53e3\u5c06\u6570\u636e\u4ee5\u5b57\u8282\u6d41\u7684\u5f62\u5f0f\u4f20\u8f93\u3002\u8fd1\u5e74\u6765\uff0c\u968f\u7740\u7535\u5b50\u6280\u672f\u7684\u53d1\u5c55\uff0c\u4e32\u53e3\u4e5f\u53d1\u751f\u4e86\u5de8\u5927\u53d8\u5316\uff0c\u5176\u4e2d\u6700\u91cd\u8981\u7684\u53d8\u5316\u5c31\u662fE<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[69],"class_list":["post-43458","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-cktx"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/43458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=43458"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/43458\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=43458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=43458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=43458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}