{"id":44099,"date":"2023-09-30T09:57:23","date_gmt":"2023-09-30T01:57:23","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=44099"},"modified":"2023-09-30T09:58:57","modified_gmt":"2023-09-30T01:58:57","slug":"exn","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/44099.html","title":{"rendered":"Electron \u6027\u80fd"},"content":{"rendered":"

  Electron\u662f\u4e00\u79cd\u8de8\u5e73\u53f0\u7684\u6846\u67b6\uff0c\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u7684\u4f18\u52bf\u5728\u4e8e\u53ef\u4ee5\u4f7f\u7528 web \u6280\u672f\uff0c\u5982 HTML\u3001CSS \u548c JavaScript \u6765\u6784\u5efa\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u800c\u4e0d\u9700\u8981\u5b66\u4e60\u590d\u6742\u7684\u672c\u5730\u5f00\u53d1\u6280\u672f\u3002\u4f46\u662f\uff0c\u7531\u4e8e Electron \u662f\u57fa\u4e8e Chromium \u5185\u6838\u7684\uff0c\u56e0\u6b64\u5b83\u7684\u6027\u80fd\u4e5f\u53d7\u5230\u4e86\u4e00\u5b9a\u7684\u5f71\u54cd\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd Electron \u7684\u6027\u80fd\u95ee\u9898\uff0c\u5e76\u4ecb\u7ecd\u5982\u4f55\u63d0\u9ad8 Electron \u7684\u6027\u80fd\u3002<\/p>\n

Electron \u6027\u80fd\u7684\u5f71\u54cd\u56e0\u7d20<\/h2>\n

  Electron \u7684\u6027\u80fd\u53d7\u5230\u591a\u79cd\u56e0\u7d20\u7684\u5f71\u54cd\uff0c\u5305\u62ec\uff1a<\/p>\n

  1. \u5185\u5b58\u5360\u7528<\/h3>\n

  \u7531\u4e8e Electron \u662f\u57fa\u4e8e Chromium \u5185\u6838\u7684\uff0c\u56e0\u6b64\u5b83\u7684\u5185\u5b58\u5360\u7528\u8f83\u9ad8\uff0c\u800c\u4e14\u968f\u7740\u5e94\u7528\u7a0b\u5e8f\u7684\u590d\u6742\u6027\u548c\u591a\u6837\u6027\u800c\u589e\u52a0\u3002\u56e0\u6b64\uff0c\u5982\u679c\u5e94\u7528\u7a0b\u5e8f\u7684\u8bbe\u8ba1\u4e0d\u5f53\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5185\u5b58\u6ea2\u51fa\uff0c\u4ece\u800c\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n

  2. \u7ebf\u7a0b\u6570\u91cf<\/h3>\n

  Electron \u4f7f\u7528\u591a\u7ebf\u7a0b\u6280\u672f\u6765\u5904\u7406\u4efb\u52a1\uff0c\u4f46\u662f\u5982\u679c\u7ebf\u7a0b\u6570\u91cf\u8fc7\u591a\uff0c\u4f1a\u5bfc\u81f4 CPU \u8d1f\u8f7d\u8fc7\u9ad8\uff0c\u4ece\u800c\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n

  3. \u7f51\u7edc\u8bf7\u6c42<\/h3>\n

  Electron \u5e94\u7528\u7a0b\u5e8f\u53ef\u80fd\u4f1a\u53d1\u9001\u5927\u91cf\u7684\u7f51\u7edc\u8bf7\u6c42\uff0c\u5982\u679c\u8fd9\u4e9b\u8bf7\u6c42\u5904\u7406\u4e0d\u5f53\uff0c\u4f1a\u5bfc\u81f4\u7f51\u7edc\u5ef6\u8fdf\uff0c\u4ece\u800c\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n

Electron \u6027\u80fd\u7684\u63d0\u5347\u65b9\u6cd5<\/h2>\n

  Electron \u6027\u80fd\u7684\u63d0\u5347\u6709\u5f88\u591a\u65b9\u6cd5\uff0c\u5305\u62ec\uff1a<\/p>\n

  1. \u4f18\u5316\u5185\u5b58\u5360\u7528<\/h3>\n

  \u5e94\u7528\u7a0b\u5e8f\u7684\u8bbe\u8ba1\u5e94\u8be5\u5c3d\u53ef\u80fd\u51cf\u5c11\u5185\u5b58\u7684\u4f7f\u7528\uff0c\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11\u5185\u5b58\u6ea2\u51fa\uff0c\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n

  2. \u9650\u5236\u7ebf\u7a0b\u6570\u91cf<\/h3>\n

  \u5e94\u7528\u7a0b\u5e8f\u7684\u8bbe\u8ba1\u5e94\u8be5\u5c3d\u53ef\u80fd\u51cf\u5c11\u7ebf\u7a0b\u7684\u4f7f\u7528\uff0c\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11 CPU \u8d1f\u8f7d\uff0c\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n

  3. \u4f18\u5316\u7f51\u7edc\u8bf7\u6c42<\/h3>\n

  \u5e94\u7528\u7a0b\u5e8f\u7684\u8bbe\u8ba1\u5e94\u8be5\u5c3d\u53ef\u80fd\u51cf\u5c11\u7f51\u7edc\u8bf7\u6c42\u7684\u4f7f\u7528\uff0c\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11\u7f51\u7edc\u5ef6\u8fdf\uff0c\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  Electron \u662f\u4e00\u79cd\u8de8\u5e73\u53f0\u7684\u6846\u67b6\uff0c\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002<\/strong>\u4f46\u662f\uff0c\u7531\u4e8e Electron \u662f\u57fa\u4e8e Chromium \u5185\u6838\u7684\uff0c\u56e0\u6b64\u5b83\u7684\u6027\u80fd\u4e5f\u53d7\u5230\u4e86\u4e00\u5b9a\u7684\u5f71\u54cd\u3002Electron \u7684\u6027\u80fd\u53d7\u5230\u591a\u79cd\u56e0\u7d20\u7684\u5f71\u54cd\uff0c\u5305\u62ec\uff1a\u5185\u5b58\u5360\u7528\uff0c\u7ebf\u7a0b\u6570\u91cf\u548c\u7f51\u7edc\u8bf7\u6c42\u3002\u8981\u63d0\u9ad8 Electron \u7684\u6027\u80fd\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f18\u5316\u5185\u5b58\u5360\u7528\u3001\u9650\u5236\u7ebf\u7a0b\u6570\u91cf\u548c\u4f18\u5316\u7f51\u7edc\u8bf7\u6c42\u6765\u5b9e\u73b0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Electron\u662f\u4e00\u79cd\u8de8\u5e73\u53f0\u7684\u6846\u67b6\uff0c\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u7684\u4f18\u52bf\u5728\u4e8e\u53ef\u4ee5\u4f7f\u7528web\u6280\u672f\uff0c\u5982HTML\u3001CSS\u548cJavaScript\u6765\u6784\u5efa\u684c\u9762\u5e94\u7528\u7a0b<\/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-44099","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/44099","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=44099"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/44099\/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=44099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=44099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=44099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}