{"id":58284,"date":"2023-10-19T04:22:02","date_gmt":"2023-10-18T20:22:02","guid":{"rendered":"\/\/www.viralrail.com\/blog\/58284.html"},"modified":"2023-10-19T04:22:02","modified_gmt":"2023-10-18T20:22:02","slug":"syekykzyj","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/58284.html","title":{"rendered":"\u4f7f\u7528Electron\u53ef\u4ee5\u63a7\u5236\u786c\u4ef6"},"content":{"rendered":"

  \u8fd1\u5e74\u6765\uff0c\u968f\u7740\u79d1\u6280\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u7535\u5b50\u8bbe\u5907\u7684\u666e\u53ca\uff0c\u4eba\u4eec\u5bf9\u63a7\u5236\u786c\u4ef6\u7684\u9700\u6c42\u4e5f\u8d8a\u6765\u8d8a\u591a\u3002\u7531\u4e8e\u4f20\u7edf\u7684\u63a7\u5236\u65b9\u5f0f\u9700\u8981\u5927\u91cf\u7684\u7f16\u7a0b\u77e5\u8bc6\uff0c\u4f7f\u5f97\u5927\u591a\u6570\u4eba\u65e0\u6cd5\u8f7b\u677e\u5b9e\u73b0\u63a7\u5236\u786c\u4ef6\u7684\u76ee\u7684\u3002\u56e0\u6b64\uff0c\u5f00\u53d1\u51fa\u4e00\u79cd\u7b80\u5355\u6613\u7528\u7684\u63a7\u5236\u786c\u4ef6\u7684\u5de5\u5177\u4fbf\u663e\u5f97\u5c24\u4e3a\u91cd\u8981\u3002Electron\u5c31\u662f\u8fd9\u6837\u4e00\u79cd\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u8ba9\u7528\u6237\u8f7b\u677e\u5730\u63a7\u5236\u786c\u4ef6\uff0c\u4ee5\u5b9e\u73b0\u81ea\u5df1\u7684\u76ee\u7684\u3002<\/p>\n

\u4ec0\u4e48\u662fElectron\uff1f<\/h2>\n

  Electron\u662f\u4e00\u79cd\u5f00\u6e90\u6846\u67b6\uff0c\u7528\u4e8e\u6784\u5efa\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002<\/strong>\u5b83\u4f7f\u7528HTML\uff0cCSS\u548cJavaScript\u6765\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u7684\u7528\u6237\u754c\u9762\uff0c\u5e76\u4f7f\u7528Node.js\u6765\u5904\u7406\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u7684\u4ea4\u4e92\u3002Electron\u4e0d\u4ec5\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u8fd8\u53ef\u4ee5\u7528\u4e8e\u63a7\u5236\u786c\u4ef6\u3002<\/p>\n

Electron\u53ef\u4ee5\u63a7\u5236\u786c\u4ef6\u7684\u539f\u7406<\/h2>\n

  Electron\u53ef\u4ee5\u63a7\u5236\u786c\u4ef6\uff0c\u539f\u7406\u662f\u901a\u8fc7Node.js\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u8fdb\u884c\u4ea4\u4e92\uff0c\u5b9e\u73b0\u5bf9\u786c\u4ef6\u7684\u63a7\u5236\u3002Node.js\u53ef\u4ee5\u901a\u8fc7\u64cd\u4f5c\u7cfb\u7edf\u7684\u5e95\u5c42API\u6765\u8bbf\u95ee\u786c\u4ef6\u8bbe\u5907\uff0c\u4ece\u800c\u5b9e\u73b0\u63a7\u5236\u786c\u4ef6\u7684\u76ee\u7684\u3002<\/p>\n

  Node.js\u8bbf\u95ee\u786c\u4ef6\u8bbe\u5907\u7684\u65b9\u5f0f<\/h3>\n

  Node.js\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\u8bbf\u95ee\u786c\u4ef6\u8bbe\u5907\uff1a<\/p>\n

    \n
  • \u4f7f\u7528\u7cfb\u7edf\u8c03\u7528\uff1aNode.js\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528\u64cd\u4f5c\u7cfb\u7edf\u7684\u5e95\u5c42API\u6765\u8bbf\u95ee\u786c\u4ef6\u8bbe\u5907\uff0c\u5b9e\u73b0\u63a7\u5236\u786c\u4ef6\u7684\u76ee\u7684\u3002<\/li>\n
  • \u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\uff1aNode.js\u4e5f\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6765\u8bbf\u95ee\u786c\u4ef6\u8bbe\u5907\uff0c\u4f8b\u5982Johnny-Five\u5e93\uff0c\u53ef\u4ee5\u7528\u6765\u63a7\u5236Arduino\u5f00\u53d1\u677f\u3002<\/li>\n
  • \u4f7f\u7528\u8bbe\u5907\u9a71\u52a8\uff1aNode.js\u4e5f\u53ef\u4ee5\u4f7f\u7528\u8bbe\u5907\u9a71\u52a8\uff0c\u4f8b\u5982USB\u8bbe\u5907\u9a71\u52a8\uff0c\u5b9e\u73b0\u5bf9\u786c\u4ef6\u8bbe\u5907\u7684\u63a7\u5236\u3002<\/li>\n<\/ul>\n

    \u603b\u7ed3<\/h2>\n

      Electron\u662f\u4e00\u79cd\u5f00\u6e90\u6846\u67b6\uff0c\u7528\u4e8e\u6784\u5efa\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002<\/strong>\u5b83\u4f7f\u7528HTML\uff0cCSS\u548cJavaScript\u6765\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u7684\u7528\u6237\u754c\u9762\uff0c\u5e76\u4f7f\u7528Node.js\u6765\u5904\u7406\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u7684\u4ea4\u4e92\uff0c\u5b9e\u73b0\u5bf9\u786c\u4ef6\u8bbe\u5907\u7684\u63a7\u5236\u3002Electron\u53ef\u4ee5\u8ba9\u7528\u6237\u8f7b\u677e\u5730\u63a7\u5236\u786c\u4ef6\uff0c\u4ee5\u5b9e\u73b0\u81ea\u5df1\u7684\u76ee\u7684\uff0c\u800c\u4e0d\u9700\u8981\u5927\u91cf\u7684\u7f16\u7a0b\u77e5\u8bc6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u8fd1\u5e74\u6765\uff0c\u968f\u7740\u79d1\u6280\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u7535\u5b50\u8bbe\u5907\u7684\u666e\u53ca\uff0c\u4eba\u4eec\u5bf9\u63a7\u5236\u786c\u4ef6\u7684\u9700\u6c42\u4e5f\u8d8a\u6765\u8d8a\u591a\u3002\u7531\u4e8e\u4f20\u7edf\u7684\u63a7\u5236\u65b9\u5f0f\u9700\u8981\u5927\u91cf\u7684\u7f16\u7a0b\u77e5\u8bc6\uff0c\u4f7f\u5f97\u5927\u591a\u6570\u4eba\u65e0\u6cd5\u8f7b\u677e\u5b9e\u73b0\u63a7\u5236\u786c\u4ef6\u7684\u76ee\u7684\u3002\u56e0\u6b64\uff0c\u5f00\u53d1\u51fa\u4e00\u79cd<\/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":[305],"class_list":["post-58284","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/58284"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=58284"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/58284\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=58284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=58284"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=58284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}