{"id":18834,"date":"2024-03-15T09:42:45","date_gmt":"2024-03-15T01:42:45","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=18834"},"modified":"2024-03-15T09:42:45","modified_gmt":"2024-03-15T01:42:45","slug":"web%e7%bd%91%e9%a1%b5%e6%89%93%e5%8c%85%e6%88%90exe%e6%ad%a5%e9%aa%a4%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/18834\/","title":{"rendered":"web\u7f51\u9875\u6253\u5305\u6210exe\u6b65\u9aa4\u4ecb\u7ecd"},"content":{"rendered":"

\u5c06Web\u7f51\u9875\u6253\u5305\u6210EXE\u6587\u4ef6\uff0c\u5176\u5b9e\u5c31\u662f\u5c06Web\u5e94\u7528\u7a0b\u5e8f\u8f6c\u5316\u4e3a\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u4e00\u79cd\u65b9\u5f0f\u3002\u8fd9\u79cd\u65b9\u5f0f\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u53ef\u4ee5\u63d0\u9ad8\u7528\u6237\u7684\u4f7f\u7528\u4f53\u9a8c\uff0c\u56e0\u4e3a\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u901a\u5e38\u6bd4Web\u5e94\u7528\u7a0b\u5e8f\u66f4\u52a0\u7a33\u5b9a\u3001\u6d41\u7545\uff0c\u5e76\u4e14\u53ef\u4ee5\u8131\u79bb\u7f51\u7edc\u73af\u5883\u72ec\u7acb\u8fd0\u884c\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecdWeb\u7f51\u9875\u6253\u5305\u6210EXaixwsmwindows\u6253\u5305<\/a>E\u7684\u539f\u7406\u548c\u5b9e\u73b0\u65b9\u6cd5\u3002<\/p>\n

\u4e00\u3001\u539f\u7406<\/p>\n

\u5c06Web\u7f51\u9875\u6253\u5305\u6210EXE\u6587\u4ef6\u7684\u539f\u7406\u662f\u5c06Web\u5e94\u7528\u7a0b\u5e8f\u8f6c\u5316\u4e3a\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u4e3b\u8981\u6709\u4e24\u79cd\u65b9\u5f0f\uff1a<\/p>\n

1. \u57fa\u4e8e\u6d4f\u89c8\u5668\u5185\u6838\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f<\/p>\n

\u8fd9\u79cd\u65b9\u5f0f\u662f\u5c06Web\u5e94\u7528\u7a0b\u5e8f\u5c01\u88c5\u5728\u4e00\u4e2a\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u4f7f\u7528\u7684\u662f\u6d4f\u89c8\u5668\u5185\u6838\uff0c\u6bd4\u5982Google Chrome\u3001Internet Explorer\u3001Mozilla Firefox\u7b49\u3002\u8fd9\u79cd\u65b9\u5f0f\u7684\u597d\u5904\u662f\u53ef\u4ee5\u5feb\u901f\u5b9e\u73b0Web\u5e94\u7528\u7a0b\u5e8f\u5e94\u7528\u5982\u4f55\u6253\u5305\u6210exe<\/a>\u7684\u8f6c\u5316\uff0c\u540c\u65f6\u4e5f\u53ef\u4ee5\u5229\u7528\u6d4f\u89c8\u5668\u5185\u6838\u7684\u4f18\u52bf\uff0c\u6bd4\u5982\u81ea\u52a8\u7f13\u5b58\u3001\u811a\u672c\u89e3\u91ca\u7b49\u3002<\/p>\n

2. \u57fa\u4e8e\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684Web\u5bb9\u5668<\/p>\n

\u8fd9\u79cd\u65b9\u5f0f\u662f\u5c06Web\u5e94\u7528\u7a0b\u5e8f\u5c01\u88c5\u5728\u4e00\u4e2a\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u4f7f\u7528\u7684\u662f\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u529f\u80fd\u548cAPI\uff0c\u6bd4\u5982\u6587\u4ef6\u7cfb\u7edf\u3001\u7f51\u7edc\u8bf7\u6c42\u3001\u64cd\u4f5c\u7cfb\u7edf\u63a5\u53e3\u7b49\u3002\u8fd9\u79cd\u65b9\u5f0f\u7684\u597d\u5904\u662f\u53ef\u4ee5\u66f4\u597d\u5730\u96c6\u6210\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u529f\u80fd\u548cWeb\u5e94\u7528\u7a0b\u5e8f\u7684\u4ea4\u4e92\uff0c\u63d0\u4f9b\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n

\u4e8c\u3001\u5b9e\u73b0\u65b9\u6cd5<\/p>\n

\u5c06Web\u7f51\u9875\u6253\u5305\u6210EXE\u6587\u4ef6\u7684\u5b9e\u73b0\u65b9\u6cd5\u4e3b\u8981\u6709\u4ee5\u4e0b\u4e24\u79cd\uff1a<\/p>\n

1. \u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177<\/p>\n

\u5e02\u9762\u4e0a\u6709\u5f88\u591a\u7b2c\u4e09\u65b9\u5de5\u5177\u53ef\u4ee5\u5c06Web\u7f51\u9875\u6253\u5305\u6210EXE\u6587\u4ef6\uff0c\u6bd4\u5982Electron\u3001NW.js\u3001AppJS\u7b49\u3002\u8fd9\u4e9b\u5de5\u5177\u90fd\u662f\u57fa\u4e8e\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684Web\u5bb9\u5668\u5b9e\u73b0\u7684\uff0c\u53ef\u4ee5\u5c06Web\u5e94\u7528\u7a0b\u5e8f\u8f6c\u5316\u4e3a\u72ec\u7acb\u7684\u684c<\/p>\n

<\/figure>\n<\/p>\n

\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u4e14\u53ef\u4ee5\u8de8\u5e73\u53f0\u8fd0\u884c\u3002<\/p>\n

\u4ee5Electron\u4e3a\u4f8b\uff0c\u5b83\u662f\u4e00\u4e2a\u7531GitHub\u5f00\u53d1\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06Web\u7f51\u9875\u6253\u5305\u6210Mac\u3001Windows\u548cLinux\u7b49\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u7684\u5b9e\u73b0\u65b9\u5f0f\u662f\u5c06Web\u5e94\u7528\u7a0b\u5e8f\u5c01\u88c5\u5728\u4e00\u4e2aNode.js\u73af\u5883\u4e2d\uff0c\u4f7f\u7528Chromium\u5185\u6838\u6765\u6e32\u67d3\u9875\u9762\uff0c\u5e76\u63d0\u4f9b\u4e86\u8bb8\u591a\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684API\uff0c\u6bd4\u5982\u6587\u4ef6\u7cfb\u7edf\u3001\u7f51\u7edc\u8bf7\u6c42\u3001\u64cd\u4f5c\u7cfb\u7edf\u63a5\u53e3\u7b49\u3002\u4f7f\u7528Electron\u5f00\u53d1\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u9700\u8981\u4e00\u5b9a\u7684Node.js\u548cJavaScript\u57fa\u7840\u3002<\/p>\n

2. \u81ea\u5df1\u5f00\u53d1\u684c\u9762\u5e94\u7528\u7a0b\u5e8f<\/p>\n

\u5982\u679c\u4f60\u6709\u4e00\u5b9a\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u7ecf\u9a8c\uff0c\u4e5f\u53ef\u4ee5\u81ea\u5df1\u5f00\u53d1\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u6765\u5b9e\u73b0\u5c06Web\u7f51\u9875\u6253\u5305\u6210EXE\u6587\u4ef6\u7684\u529f\u80fd\u3002\u8fd9\u79cd\u65b9\u5f0f\u9700\u8981\u4f7f\u7528\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u8bed\u8a00\u548c\u5de5\u5177\uff0c\u6bd4\u5982C#\u3001Java\u3001Objective-C\u7b49\uff0c\u5e76\u4e14\u9700\u8981\u81ea\u5df1\u5b9e\u73b0Web\u5bb9\u5668\u7684\u529f\u80fd\u3002<\/p>\n

\u4ee5C#\u4e3a\u4f8b\uff0c\u53ef\u4ee5\u4f7f\u7528Windows Forms\u6216WPF\u6765\u5f00\u53d1\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f7f\u7528WebBrowser\u63a7\u4ef6\u6765\u6e32\u67d3Web\u9875\u9762\uff0c\u5e76\u63d0\u4f9b\u81ea\u5df1\u7684API\u6765\u5b9e\u73b0\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u529f\u80fd\u3002\u8fd9\u79cd\u65b9\u5f0f\u9700\u8981\u4e00\u5b9a\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u7ecf\u9a8c\u548cWeb\u5f00\u53d1\u7ecf\u9a8c\u3002<\/p>\n

\u4e09\u3001\u603b\u7ed3<\/p>\n

\u5c06Web\u7f51\u9875\u6253\u5305\u6210EXE\u6587\u4ef6\u53ef\u4ee5\u63d0\u9ad8\u7528\u6237\u7684\u4f7f\u7528\u4f53\u9a8c\uff0c\u4f46\u4e5f\u9700\u8981\u8003\u8651\u5230\u4e00\u4e9b\u95ee\u9898\uff0c\u6bd4\u5982\u5b89\u5168\u6027\u3001\u66f4\u65b0\u673a\u5236\u3001\u8de8\u5e73\u53f0\u7b49\u3002\u9009\u62e9\u5408\u9002\u7684\u5b9e\u73b0\u65b9\u5f0f\u548c\u5de5\u5177\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u5b9e\u73b0Web\u7f51\u9875\u6253\u5305\u6210EXE\u6587\u4ef6\u7684\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5c06Web\u7f51\u9875\u6253\u5305\u6210EXE\u6587\u4ef6\uff0c\u5176\u5b9e\u5c31\u662f\u5c06Web\u5e94\u7528\u7a0b\u5e8f\u8f6c\u5316\u4e3a\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u4e00\u79cd\u65b9\u5f0f\u3002\u8fd9\u79cd\u65b9\u5f0f\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u53ef\u4ee5\u63d0\u9ad8\u7528\u6237\u7684\u4f7f\u7528\u4f53\u9a8c\uff0c\u56e0\u4e3a\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u901a\u5e38\u6bd4Web\u5e94\u7528\u7a0b\u5e8f\u66f4\u52a0\u7a33\u5b9a\u3001\u6d41\u7545\uff0c\u5e76\u4e14\u53ef\u4ee5\u8131\u79bb\u7f51\u7edc\u73af<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[21457,386,12,77,3048],"topic":[],"class_list":["post-18834","post","type-post","status-publish","format-standard","hentry","category-exekf","tag-window","tag-exe","tag-12","tag-77","tag-3048"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/18834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=18834"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/18834\/revisions"}],"predecessor-version":[{"id":18859,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/18834\/revisions\/18859"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=18834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=18834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=18834"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=18834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}