{"id":44731,"date":"2025-08-29T15:39:44","date_gmt":"2025-08-29T07:39:44","guid":{"rendered":"https:\/\/h5app.yimenapp.cn\/h5app\/?p=44731"},"modified":"2025-08-29T15:39:44","modified_gmt":"2025-08-29T07:39:44","slug":"%e5%89%8d%e7%ab%af%e5%bc%80%e5%8f%91%e6%a1%8c%e9%9d%a2%e5%ba%94%e7%94%a8%e6%93%8d%e4%bd%9c%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/h5app.yimenapp.cn\/h5app\/2025\/ruanjiankf\/44731\/","title":{"rendered":"\u524d\u7aef\u5f00\u53d1\u684c\u9762\u5e94\u7528\u64cd\u4f5c\u65b9\u6cd5"},"content":{"rendered":"<p>\u968f\u7740\u4e92\u8054\u7f51\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u5e94\u7528\u7a0b\u5e8f\u90fd\u88ab\u79fb\u690d\u5230\u4e86\u4e92\u8054\u7f51\u4e0a\uff0c\u6210\u4e3a\u4e86\u7f51\u9875\u5e94\u7528\uff0c\u8fd9\u4f7f\u5f97Web\u524d\u7aef\u5f00\u53d1\u6280\u672f\u53d8\u5f97\u8d8a\u6765\u8d8a\u91cd\u8981\u3002\u4f46\u662f\uff0c\u968f\u7740\u4eba\u4eec\u5bf9\u4e8e\u7528\u6237\u4f53\u9a8c\u7684\u8981\u6c42\u8d8a\u6765\u8d8a\u9ad8\uff0cWeb\u5e94\u7528\u7684\u6027\u80fd\u548c\u4f53\u9a8c\u4e5f\u53d7\u5230\u4e86\u9650\u5236\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\uff0c\u524d\u7aef\u5f00\u53d1\u4eba\u5458\u5f00\u59cb\u5c1d\u8bd5\u5c06Web\u5e94\u7528\u8f6c\u6362\u4e3a\u684c\u9762\u5e94\u7528\uff0c\u4ee5\u63d0\u9ad8\u5e94\u7528\u7684\u6027\u80fd\u548c\u7528\u6237\u4f53\u9a8c\u3002\u5728\u672c<a href=\"https:\/\/exe.yimenapp.com\/tool-3209.html\">windows\u6279\u91cfexe\u6587\u4ef6<\/a>\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4f1a\u4ecb\u7ecd\u524d\u7aef\u5f00\u53d1\u684c\u9762\u5e94\u7528\u7684\u539f\u7406\u548c\u8be6\u7ec6\u4ecb\u7ecd\u3002<\/p>\n<p>\u4e00\u3001\u524d\u7aef\u5f00\u53d1\u684c\u9762\u5e94\u7528\u7684\u539f\u7406<\/p>\n<p>\u524d\u7aef\u5f00\u53d1\u684c\u9762\u5e94\u7528\u7684\u539f\u7406\u662f\u5c06Web\u6280\u672f\u548c\u684c\u9762\u5e94\u7528\u6280\u672f\u76f8\u7ed3\u5408\uff0c\u901a\u8fc7\u4f7f\u7528Electron\u7b49\u6846\u67b6\uff0c\u5c06Web\u5e94\u7528\u6253\u5305\u6210\u672c\u5730\u5e94\u7528\u7a0b\u5e8f\u3002Electron\u662f\u7531GitHub\u5f00\u53d1\u7684\u4e00\u4e2a\u5f00\u6e90\u6846\u67b6\uff0c\u53ef\u7528\u4e8e\u5f00\u53d1\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u57fa\u4e8eNode.js\u548cChromium\uff0c\u53ef\u4ee5\u4f7f\u7528HTML\u3001CSS\u548cJavaScript\u7b49Web\u6280\u672f\u6765\u6784\u5efa\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u4f7f\u7528Electron\u5f00\u53d1\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u672c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>1. \u5b89\u88c5Electron<\/p>\n<p>\u9996\u5148\u9700\u8981\u5728\u672c\u5730\u5b89\u88c5Electron\uff0c\u53ef\u4ee5\u4f7f\u7528npm install electron\u547d\u4ee4\u6765\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528Electron\u7684API\u548c\u5de5\u5177\u6765\u6784\u5efa\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>2. \u521b\u5efa\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u4f7f\u7528Electron\u63d0\u4f9b\u7684API\u548c\u5de5\u5177\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Electron\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u6307\u5b9a\u5e94\u7528\u7a0b\u5e8f\u7684\u540d\u79f0\u3001\u7a97\u53e3\u5927\u5c0f\u548c\u83dc\u5355\u7b49\u4fe1\u606f\uff0c\u4ee5\u53ca\u6307\u5b9a\u5e94\u7528\u7a0b\u5e8f\u7684\u4e3b\u8981\u5165\u53e3\u6587\u4ef6\u3002<\/p>\n<p>3. \u4f7f\u7528Web\u6280\u672f\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u5728Electron\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528HTML\u3001CSS\u548cJavaScript\u7b49Web\u6280\u672f\u6765\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u7684\u754c\u9762\u548c\u529f\u80fd\u3002\u53ef\u4ee5\u4f7f\u7528Electron\u63d0\u4f9b\u7684API\u548c\u5de5\u5177\u6765\u8bbf\u95ee\u672c\u5730\u6587\u4ef6\u7cfb\u7edf\u3001\u7f51\u7edc\u548c\u64cd\u4f5c\u7cfb\u7edf\u7b49\u8d44\u6e90\uff0c\u4ee5\u5b9e\u73b0\u66f4\u591a\u7684\u529f\u80fd\u3002<\/p>\n<p>4. \u6253\u5305\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u4f7f\u7528Electron\u63d0\u4f9b\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06Electron\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u672c\u5730\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ee5\u4fbf\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\u548c\u4f7f\u7528\u3002<\/p>\n<p>\u4e8c\u3001\u524d\u7aef\u5f00\u53d1\u684c\u9762\u5e94\u7528\u7684\u8be6\u7ec6\u4ecb\u7ecd<\/p>\n<p>1. \u4f7f\u7528Electron\u6784\u5efa\u684c\u9762\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>Electron\u662f\u4e00\u4e2a\u5f00\u6e90\u6846\u67b6\uff0c\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u57fa\u4e8eNode.js\u548cChromium\uff0c\u53ef\u4ee5\u4f7f\u7528HTML\u3001CSS\u548cJavaScript\u7b49Web\u6280\u672f\u6765\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u4f7f\u7528Electron\u6784\u5efa\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u672c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>1. \u5b89\u88c5Electron<\/p>\n<p>\u9996\u5148\u9700\u8981\u5728\u672c\u5730\u5b89\u88c5Electron\uff0c\u53ef\u4ee5\u4f7f\u7528npm install electron\u547d\u4ee4\u6765\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528Electron\u7684API\u548c\u5de5\u5177\u6765\u6784\u5efa\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>2. \u521b\u5efa\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u4f7f\u7528Electron\u63d0\u4f9b\u7684API\u548c\u5de5\u5177\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Electron\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u6307\u5b9a\u5e94\u7528\u7a0b\u5e8f\u7684\u540d\u79f0\u3001\u7a97\u53e3\u5927\u5c0f\u548c\u83dc\u5355\u7b49\u4fe1\u606f\uff0c\u4ee5\u53ca\u6307\u5b9a\u5e94\u7528\u7a0b\u5e8f\u7684\u4e3b\u8981\u5165\u53e3\u6587\u4ef6\u3002<\/p>\n<p>3. \u4f7f\u7528Web\u6280\u672f\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u5728Electron\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528HTML\u3001CSS\u548cJavaScript\u7b49Web\u6280\u672f\u6765\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u7684\u754c\u9762\u548c\u529f\u80fd\u3002\u53ef\u4ee5\u4f7f\u7528Electron\u63d0\u4f9b\u7684API\u548c\u5de5\u5177\u6765\u8bbf\u95ee\u672c\u5730\u6587\u4ef6\u7cfb\u7edf\u3001\u7f51\u7edc\u548c\u64cd\u4f5c\u7cfb\u7edf\u7b49\u8d44\u6e90\uff0c\u4ee5\u5b9e\u73b0\u66f4\u591a\u7684\u529f\u80fd\u3002<\/p>\n<p>4. \u6253\u5305\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u4f7f\u7528Electron\u63d0\u4f9b\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06Electron\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u672c\u5730\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ee5\u4fbf\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\u548c\u4f7f\u7528\u3002<\/p>\n<p>2. \u4f7f\u7528NW.js\u6784\u5efa\u684c\u9762\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>NW.js\u662f\u53e6\u4e00\u4e2a\u5f00\u6e90\u6846\u67b6\uff0c\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u57fa\u4e8eNode.js\u548cChromium\uff0c\u53ef\u4ee5\u4f7f\u7528HTML\u3001CSS\u548cJavaScript\u7b49Web\u6280\u672f\u6765\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u4f7f\u7528NW.js\u6784\u5efa\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u672c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>1. \u5b89\u88c5NW.js<\/p>\n<p>\u9996\u5148\u9700\u8981\u5728\u672c\u5730\u5b89\u88c5NW.js\uff0c\u53ef\u4ee5\u4ece\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305\uff0c\u7136\u540e\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528NW.js\u7684API\u548c\u5de5\u5177\u6765\u6784\u5efa\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>2. \u521b\u5efa\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u4f7f\u7528NW.js\u63d0\u4f9b\u7684API\u548c\u5de5\u5177\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684NW.js\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u6307\u5b9a\u5e94\u7528\u7a0b\u5e8f\u7684\u540d\u79f0\u3001\u7a97\u53e3\u5927\u5c0f\u548c\u83dc\u5355\u7b49\u4fe1\u606f\uff0c\u4ee5\u53ca\u6307\u5b9a\u5e94\u7528<a href=\"https:\/\/exe.yimenapp.com\/tool-3956.html\">uibot\u5236\u4f5cexe<\/a>\u7a0b\u5e8f\u7684\u4e3b\u8981\u5165\u53e3\u6587\u4ef6\u3002<\/p>\n<p>3. \u4f7f\u7528Web\u6280\u672f\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u5728NW.js\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528HTML\u3001CSS\u548cJavaScript\u7b49Web\u6280\u672f\u6765\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u7684\u754c\u9762\u548c\u529f\u80fd\u3002\u53ef\u4ee5\u4f7f\u7528NW.js\u63d0\u4f9b\u7684API\u548c\u5de5\u5177\u6765\u8bbf\u95ee\u672c\u5730\u6587\u4ef6\u7cfb\u7edf\u3001\u7f51\u7edc\u548c\u64cd\u4f5c\u7cfb\u7edf\u7b49\u8d44\u6e90\uff0c\u4ee5\u5b9e\u73b0\u66f4\u591a\u7684\u529f\u80fd\u3002<\/p>\n<p>4. \u6253\u5305\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u4f7f\u7528NW.js\u63d0\u4f9b\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06NW.js\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u672c\u5730\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ee5\u4fbf\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\u548c\u4f7f\u7528\u3002<\/p>\n<p>\u4e09\u3001\u603b\u7ed3<\/p>\n<p>\u524d\u7aef\u5f00\u53d1\u684c\u9762\u5e94\u7528\u662f\u4e00\u9879\u975e\u5e38\u6709\u6311\u6218\u6027\u7684\u5de5\u4f5c\uff0c<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.yimenyun.net\/2023-03\/20\/18\/05521274651.jpg\" \/><\/figure>\n<\/p>\n<p>\u9700\u8981\u638c\u63e1Web\u6280\u672f\u548c\u684c\u9762\u5e94\u7528\u6280\u672f\uff0c\u4ee5\u53ca\u4f7f\u7528Electron\u6216NW.js\u7b49\u6846\u67b6\u6765\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u3002\u901a\u8fc7\u5c06Web\u5e94\u7528\u8f6c\u6362\u4e3a\u684c\u9762\u5e94\u7528\uff0c\u53ef\u4ee5\u63d0\u9ad8\u5e94\u7528\u7684\u6027\u80fd\u548c\u7528\u6237\u4f53\u9a8c\uff0c\u4e3a\u7528\u6237\u63d0\u4f9b\u66f4\u597d\u7684\u4f7f\u7528\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u968f\u7740\u4e92\u8054\u7f51\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u5e94\u7528\u7a0b\u5e8f\u90fd\u88ab\u79fb\u690d\u5230\u4e86\u4e92\u8054\u7f51\u4e0a\uff0c\u6210\u4e3a\u4e86\u7f51\u9875\u5e94\u7528\uff0c\u8fd9\u4f7f\u5f97Web\u524d\u7aef\u5f00\u53d1\u6280\u672f\u53d8\u5f97\u8d8a\u6765\u8d8a\u91cd\u8981\u3002\u4f46\u662f\uff0c\u968f\u7740\u4eba\u4eec\u5bf9\u4e8e\u7528\u6237\u4f53\u9a8c\u7684\u8981\u6c42\u8d8a\u6765\u8d8a\u9ad8\uff0cWeb\u5e94\u7528\u7684\u6027\u80fd\u548c\u4f53\u9a8c\u4e5f\u53d7\u5230\u4e86\u9650\u5236<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[15628,929,19448,11,3614],"topic":[],"class_list":["post-44731","post","type-post","status-publish","format-standard","hentry","category-ruanjiankf","tag-dmg","tag-929","tag-exe","tag-11","tag-3614"],"_links":{"self":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts\/44731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/comments?post=44731"}],"version-history":[{"count":1,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts\/44731\/revisions"}],"predecessor-version":[{"id":44768,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts\/44731\/revisions\/44768"}],"wp:attachment":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/media?parent=44731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/categories?post=44731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/tags?post=44731"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/topic?post=44731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}