{"id":44207,"date":"2023-09-30T10:31:15","date_gmt":"2023-09-30T02:31:15","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=44207"},"modified":"2023-09-30T10:35:31","modified_gmt":"2023-09-30T02:35:31","slug":"edyqd","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/44207.html","title":{"rendered":"Electron\u7684\u4f18\u7f3a\u70b9"},"content":{"rendered":"
Electron\u662f\u4e00\u79cd\u5f00\u6e90\u5e93\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u4f7f\u7528Javascript\uff0cHTML\u548cCSS\u6765\u6784\u5efa\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u662f\u7531Github\u5f00\u53d1\u7684\uff0c\u53ef\u4ee5\u5728Windows\uff0cMacOS\u548cLinux\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u6784\u5efa\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002\u672c\u6587\u5c06\u8ba8\u8bbaElectron\u7684\u4f18\u7f3a\u70b9\uff0c\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u66f4\u597d\u5730\u4e86\u89e3\u5b83\u3002<\/p>\n
Electron\u53ef\u4ee5\u5728Windows\uff0cMacOS\u548cLinux\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\uff0c\u8fd9\u610f\u5473\u7740\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u6784\u5efa\u8de8\u5e73\u53f0\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u800c\u4e0d\u5fc5\u4e3a\u6bcf\u4e2a\u5e73\u53f0\u7f16\u5199\u5355\u72ec\u7684\u4ee3\u7801\u3002\u8fd9\u53ef\u4ee5\u8282\u7701\u5927\u91cf\u7684\u65f6\u95f4\u548c\u8d44\u6e90\uff0c\u540c\u65f6\u4e5f\u53ef\u4ee5\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u5728\u6240\u6709\u5e73\u53f0\u4e0a\u8868\u73b0\u4e00\u81f4\u3002<\/p>\n
\u7531\u4e8eElectron\u4f7f\u7528\u7684\u662fJavascript\uff0cHTML\u548cCSS\uff0c\u56e0\u6b64\u5bf9\u4e8e\u719f\u6089\u8fd9\u4e9b\u6280\u672f\u7684\u5f00\u53d1\u4eba\u5458\u6765\u8bf4\uff0c\u5b66\u4e60Electron\u7684\u66f2\u7ebf\u975e\u5e38\u4f4e\u3002\u5b83\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u6587\u6863\u548c\u6559\u7a0b\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u66f4\u5feb\u5730\u4e0a\u624bElectron\u3002<\/p>\n
Electron\u5177\u6709\u975e\u5e38\u5f3a\u5927\u7684\u53ef\u6269\u5c55\u6027\uff0c\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528Node.js\u6a21\u5757\u6765\u6784\u5efa\u66f4\u590d\u6742\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u63d2\u4ef6\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u66f4\u5feb\u5730\u5b8c\u6210\u4efb\u52a1\u3002<\/p>\n
\u7531\u4e8eElectron\u4f7f\u7528Chromium\u4f5c\u4e3a\u6838\u5fc3\uff0c\u56e0\u6b64\u5b83\u7684\u5e94\u7528\u7a0b\u5e8f\u4f53\u79ef\u6bd4\u5176\u4ed6\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u8981\u5927\u5f97\u591a\u3002\u8fd9\u53ef\u80fd\u4f1a\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\uff0c\u5e76\u4e14\u53ef\u80fd\u4f1a\u4f7f\u7528\u6237\u611f\u5230\u56f0\u60d1\u3002<\/p>\n
\u7531\u4e8eElectron\u4f7f\u7528Chromium\u4f5c\u4e3a\u6838\u5fc3\uff0c\u56e0\u6b64\u5b83\u53ef\u80fd\u4f1a\u53d7\u5230\u6076\u610f\u8f6f\u4ef6\u7684\u5a01\u80c1\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u53ef\u80fd\u53d7\u5230\u7f51\u7edc\u653b\u51fb\u7684\u5a01\u80c1\uff0c\u56e0\u6b64\u5f00\u53d1\u4eba\u5458\u5fc5\u987b\u91c7\u53d6\u989d\u5916\u7684\u5b89\u5168\u63aa\u65bd\u6765\u4fdd\u62a4\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n
\u7531\u4e8eElectron\u4f7f\u7528Chromium\u4f5c\u4e3a\u6838\u5fc3\uff0c\u56e0\u6b64\u5b83\u53ef\u80fd\u65e0\u6cd5\u53ca\u65f6\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\u3002\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5e94\u7528\u7a0b\u5e8f\u51fa\u73b0\u5b89\u5168\u6f0f\u6d1e\uff0c\u56e0\u6b64\u5f00\u53d1\u4eba\u5458\u9700\u8981\u5b9a\u671f\u68c0\u67e5\u66f4\u65b0\u3002<\/p>\n
\u603b\u7684\u6765\u8bf4\uff0cElectron\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5f00\u6e90\u5e93\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u6784\u5efa\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002<\/strong>\u5b83\u7684\u4f18\u70b9\u5305\u62ec\u8de8\u5e73\u53f0\u6027\uff0c\u4f4e\u5b66\u4e60\u66f2\u7ebf\u548c\u53ef\u6269\u5c55\u6027\uff0c\u4f46\u5b83\u4e5f\u6709\u4e00\u4e9b\u7f3a\u70b9\uff0c\u5982\u5e94\u7528\u7a0b\u5e8f\u4f53\u79ef\u8f83\u5927\uff0c\u5b89\u5168\u6027\u548c\u66f4\u65b0\u95ee\u9898\u3002\u56e0\u6b64\uff0c\u5f00\u53d1\u4eba\u5458\u5e94\u8be5\u8003\u8651\u8fd9\u4e9b\u56e0\u7d20\uff0c\u4ee5\u786e\u5b9a\u662f\u5426\u4f7f\u7528Electron\u6765\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" Electron\u662f\u4e00\u79cd\u5f00\u6e90\u5e93\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u4f7f\u7528Javascript\uff0cHTML\u548cCSS\u6765\u6784\u5efa\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u662f\u7531Github\u5f00\u53d1\u7684\uff0c\u53ef\u4ee5\u5728Windows\uff0cMacO<\/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-44207","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\/44207","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=44207"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/44207\/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=44207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=44207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=44207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}