{"id":56581,"date":"2023-10-22T23:07:19","date_gmt":"2023-10-22T15:07:19","guid":{"rendered":"\/\/www.viralrail.com\/?p=56581"},"modified":"2023-10-22T23:07:19","modified_gmt":"2023-10-22T15:07:19","slug":"smsekj","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/56581.html","title":{"rendered":"\u4ec0\u4e48\u662fElectron\u6846\u67b6\uff1f"},"content":{"rendered":"

  Electron\u662f\u4e00\u4e2a\u5f00\u6e90\u6846\u67b6\uff0c\u7528\u4e8e\u4f7f\u7528JavaScript\uff0cHTML\u548cCSS\u6765\u6784\u5efa\u8de8\u5e73\u53f0\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u662f\u7531Github\u5f00\u53d1\u7684\uff0c\u53ef\u4ee5\u5c06Web\u5e94\u7528\u7a0b\u5e8f\u8f7b\u677e\u5730\u6253\u5305\u6210\u672c\u5730\u5e94\u7528\u7a0b\u5e8f\uff0c\u65e0\u9700\u5bf9\u7528\u6237\u8fdb\u884c\u4efb\u4f55\u66f4\u6539\u3002<\/p>\n

Electron\u6846\u67b6\u7684\u4f18\u52bf<\/h2>\n

  Electron\u6846\u67b6\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u8de8\u5e73\u53f0\u6846\u67b6\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u8f7b\u677e\u5730\u5c06Web\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u672c\u5730\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ece\u800c\u8282\u7701\u5927\u91cf\u7684\u5f00\u53d1\u65f6\u95f4\u3002\u5b83\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u4f7f\u7528\u4e00\u79cd\u8bed\u8a00\uff08JavaScript\uff09\u6765\u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\u7a0b\u5e8f\uff0c\u8fd9\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u66f4\u8f7b\u677e\u5730\u5c06\u5e94\u7528\u7a0b\u5e8f\u79fb\u690d\u5230\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u6b64\u5916\uff0cElectron\u6846\u67b6\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u6709\u7528\u7684API\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u8f7b\u677e\u5730\u5b9e\u73b0\u590d\u6742\u7684\u529f\u80fd\u3002<\/p>\n

  \u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528Electron\u6846\u67b6\uff1f<\/h3>\n

  Electron\u6846\u67b6\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u8282\u7701\u5927\u91cf\u7684\u65f6\u95f4\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u4f7f\u7528\u4e00\u79cd\u8bed\u8a00\uff08JavaScript\uff09\u6765\u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\u7a0b\u5e8f\uff0c\u800c\u4e0d\u5fc5\u4e3a\u6bcf\u4e2a\u5e73\u53f0\u7f16\u5199\u4e0d\u540c\u7684\u4ee3\u7801\u3002\u6b64\u5916\uff0cElectron\u6846\u67b6\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u6709\u7528\u7684API\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u8f7b\u677e\u5730\u5b9e\u73b0\u590d\u6742\u7684\u529f\u80fd\u3002\u6b64\u5916\uff0cElectron\u6846\u67b6\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u8f7b\u677e\u5730\u5b9e\u73b0\u8de8\u5e73\u53f0\u517c\u5bb9\u6027\uff0c\u4ece\u800c\u8ba9\u5e94\u7528\u7a0b\u5e8f\u66f4\u52a0\u7a33\u5b9a\u3002<\/p>\n

  \u5982\u4f55\u4f7f\u7528Electron\u6846\u67b6\uff1f<\/h3>\n

  \u4f7f\u7528Electron\u6846\u67b6\u975e\u5e38\u7b80\u5355\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5Node.js\uff0c\u7136\u540e\u53ef\u4ee5\u4f7f\u7528npm\u6765\u5b89\u88c5Electron\u6846\u67b6\u3002\u4e4b\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528Electron\u6846\u67b6\u7684API\u6765\u5b9e\u73b0\u81ea\u5df1\u60f3\u8981\u7684\u529f\u80fd\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528Electron\u6846\u67b6\u7684\u8c03\u8bd5\u5de5\u5177\u6765\u8c03\u8bd5\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ee5\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  Electron\u6846\u67b6\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u8de8\u5e73\u53f0\u6846\u67b6\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u8282\u7701\u5927\u91cf\u7684\u5f00\u53d1\u65f6\u95f4\uff0c\u5e76\u8ba9\u5f00\u53d1\u8005\u4f7f\u7528\u4e00\u79cd\u8bed\u8a00\uff08JavaScript\uff09\u6765\u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\u7a0b\u5e8f\u3002<\/strong>\u6b64\u5916\uff0cElectron\u6846\u67b6\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u6709\u7528\u7684API\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u8f7b\u677e\u5730\u5b9e\u73b0\u590d\u6742\u7684\u529f\u80fd\u3002\u4f7f\u7528Electron\u6846\u67b6\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5b89\u88c5Node.js\uff0c\u7136\u540e\u4f7f\u7528npm\u5b89\u88c5Electron\u6846\u67b6\uff0c\u5373\u53ef\u4f7f\u7528Electron\u6846\u67b6\u7684API\u6765\u5b9e\u73b0\u81ea\u5df1\u60f3\u8981\u7684\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Electron\u662f\u4e00\u4e2a\u5f00\u6e90\u6846\u67b6\uff0c\u7528\u4e8e\u4f7f\u7528JavaScript\uff0cHTML\u548cCSS\u6765\u6784\u5efa\u8de8\u5e73\u53f0\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u662f\u7531Github\u5f00\u53d1\u7684\uff0c\u53ef\u4ee5\u5c06Web\u5e94\u7528<\/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-56581","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\/56581"}],"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=56581"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/56581\/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=56581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=56581"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=56581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}