{"id":5714,"date":"2023-09-25T15:30:54","date_gmt":"2023-09-25T07:30:54","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=5714"},"modified":"2023-09-25T15:30:54","modified_gmt":"2023-09-25T07:30:54","slug":"%e7%bd%91%e9%a1%b5%e6%89%93%e5%8c%85%e7%94%b5%e8%84%91app%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e7%9a%84%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/5714\/","title":{"rendered":"\u7f51\u9875\u6253\u5305\u7535\u8111app\u5982\u4f55\u5b9e\u73b0\u7684\uff1f"},"content":{"rendered":"

\u968f\u7740\u4e92\u8054\u7f51\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u7f51\u9875\u5e94\u7528\u8bde\u751f\uff0c\u5b83\u4eec\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ebf\u4e0a\u529f\u80fd\u548c\u670d\u52a1\u3002\u4f46\u540c\u65f6\uff0c\u8bb8\u591a\u7528\u6237\u548c\u4f01\u4e1a\u4e5f\u5e0c\u671b\u5c06\u8fd9\u4e9b\u7f51\u9875\u5e94\u7528\u4ee5\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u5f62\u5f0f\u8fd0\u884c\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u4f7f\u7528\u548c\u6574\u5408\u4ed6\u4eec\u7684\u8d44\u6e90\u3002\u901a\u8fc7\u7f51\u9875\u6253\u5305\u6280\u672f\uff0c\u5c06\u7f51\u9875\u5e94\u7528\u8f6c\u6362\u4e3a\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff08\u4e5f\u79f0\u4e3a\u7535\u8111App\uff09\u5df2\u7ecf\u6210\u4e3a\u4e00\u79cd\u8d8b\u52bf\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211app\u7f51\u9875\u5316<\/a>\u4eec\u5c06\u63a2\u8ba8\u7f51\u9875\u6253\u5305\u7535\u8111App\u7684\u539f\u7406\u53ca\u8be6\u7ec6\u4ecb\u7ecd\u3002<\/p>\n

\u4e00\u3001\u7f51\u9875\u6253\u5305\u7535\u8111App\u7684\u539f\u7406<\/p>\n

\u7f51\u9875\u6253\u5305\u662f\u5c06\u7f51\u9875\u53ca\u5176\u76f8\u5173\u8d44\u6e90\uff08\u5982HTML\u3001CSS\u3001JavaScript\u7b49\uff09\u8fdb\u884c\u5c01\u88c5\uff0c\u751f\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u8fd9\u4e2a\u7a0b\u5e8f\u53ef\u4ee5\u5728\u5404\u79cd\u64cd\u4f5c\u7cfb\u7edf\u73af\u5883\u4e2d\u8fd0\u884c\u3002\u8fd9\u79cd\u6280\u672f\u53ef\u4ee5\u5c06\u57fa\u4e8eWeb\u7684\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u672c\u5730\u5316\u5904\u7406\uff0c\u4f7f\u5176\u6210\u4e3a\u53ef\u5728\u684c\u9762\u73af\u5883\u4e0b\u76f4\u63a5\u8fd0\u884c\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

\u539f\u7406\u4e0a\uff0c\u8fd9\u79cd\u5c01\u88c5\u6280\u672f\u901a\u5e38\u91c7\u7528\u4e00\u4e2a\u7c7b\u4f3c\u4e8e\u6d4f\u89c8\u5668\u7684\u8fd0\u884c\u65f6\u73af\u5883\uff0c\u7a0b\u5e8f\u4e2d\u5185\u5d4c\u4e86\u7f51\u9875\u8d44\u6e90\uff0c\u7528\u6237\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\uff0c\u5b9e\u9645\u4e0a\u662f\u5728\u8fd0\u884c\u4e00\u4e2a\u81ea\u5e26\u6d4f\u89c8\u5668\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u56e0\u6b64\uff0c\u7f51\u9875\u6253\u5305\u7535\u8111App\u65e0\u9700\u5728\u5916\u90e8\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\uff0c\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u684c\u9762\u56fe\u6807\u542f\u52a8\u4f7f\u7528\uff0c\u83b7\u5f97\u66f4\u4e00\u81f4\u3001\u66f4\u96c6\u4e2d\u7684\u5e94\u7528\u4f53\u9a8c\u3002<\/p>\n

\u4e8c\u3001\u5e38\u7528\u7684\u7f51\u9875\u6253\u5305\u5de5\u5177\u548c\u65b9\u6cd5<\/p>\n

\u6709\u5f88\u591a\u5de5\u5177\u53ef\u4ee5\u5c06\u7f51\u9875\u5e94\u7528\u6253\u5305\u4e3a\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u8fd9\u91cc\u5217\u4e3e\u4e86\u4e00\u4e9b\u5e38\u7528\u7684\u5de5\u5177\uff1a<\/p>\n

1. Electron\uff1aElectron\u662f\u4e00\u6b3e\u7531GitHub\u5f00\u53d1\u7684\u5f00\u6e90\u6846\u67b6\uff0c\u80fd\u591f\u5c06\u4f7f\u7528HTML\u3001CSS\u548cJavaScript\u5f00\u53d1\u7684\u7f51\u9875\u5e94\u7528\u6253\u5305\u6210\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u901a\u8fc7Electron\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u5730\u6784\u5efa\u684c\u9762\u5e94\u7528\uff0c\u5e76\u5c06\u5176\u53d1\u5e03\u5230Windows\u3001macOS\u4ee5\u53caLinux\u7b49\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n

2. NW.js\uff1aNW.js\uff08\u539f\u540dNode-Webkit\uff09\u662fIntel\u516c\u53f8\u63a8\u51fa\u7684\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\uff0c\u5141\u8bb8\u5c06Web\u6280\u672f\u5f00\u53d1\u7684\u5e94\u7528\u7a0b\u5e8f\u76f4\u63a5\u8fd0\u884c\u5728\u684c\u9762\u73af\u5883\u4e2d\u3002\u901a\u8fc7NW.js\uff0c\u60a8\u53ef\u4ee5\u5c06Web\u5e94\u7528\u7a0b\u5e8f\u8f6c\u6362\u4e3a\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u5728\u5e94\u7528\u7a0b\u5e8f\u4e2d\u4f7f\u7528Node.js\u7684\u5404\u79cd\u529f\u80fd\u3002<\/p>\n

3. WebView\uff1aWebView\u662f\u4e00\u79cd\u57fa\u4e8e\u6d4f\u89c8\u5668\u5185\u6838\u7684\u7ec4\u4ef6\uff0c\u7528\u4e8e\u5728\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5d4c\u5165\u5e76\u663e\u793aWeb\u9875\u9762\u3002\u901a\u8fc7app\u5c01\u5305\u7f51\u7ad9<\/a>\u4e3a\u5e94\u7528\u7a0b\u5e8f\u521b\u5efa\u4e00\u4e2a\u4e3b\u7a97\u53e3\uff0c\u5e76\u5728\u7a97\u53e3\u4e2d\u52a0\u8f7d\u6307\u5b9a\u7684\u9875\u9762\u5185\u5bb9\uff08\u5982HTML\u3001<\/p>\n

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

CSS\u3001JS\u7b49\uff09\uff0cWebView\u53ef\u4ee5\u5c06\u7f51\u9875\u5e94\u7528\u8f6c\u6362\u4e3a\u7c7b\u4f3c\u4e8e\u6d4f\u89c8\u5668\u7684\u684c\u9762\u5e94\u7528\u3002<\/p>\n

\u4e09\u3001\u7f51\u9875\u6253\u5305\u7535\u8111App\u7684\u4f18\u70b9<\/p>\n

1. \u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\uff1a\u6253\u5305\u4e3a\u684c\u9762\u5e94\u7528\u540e\uff0c\u7528\u6237\u53ef\u4ee5\u50cf\u4f7f\u7528\u4f20\u7edf\u684c\u9762\u8f6f\u4ef6\u90a3\u6837\u4f7f\u7528\u7f51\u9875\u5e94\u7528\uff0c\u64cd\u4f5c\u66f4\u52a0\u7b80\u6d01\u3001\u65b9\u4fbf\uff0c\u907f\u514d\u4e86\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u591a\u4e2a\u6807\u7b7e\u9875\u5bfc\u81f4\u7684\u9875\u9762\u6df7\u4e71\u3002<\/p>\n

2. \u65b9\u4fbf\u7684\u79bb\u7ebf\u5de5\u4f5c\uff1a\u901a\u8fc7\u7f51\u9875\u6253\u5305\u6280\u672f\uff0c\u7f51\u9875\u5e94\u7528\u53ef\u4ee5\u5728\u65e0\u9700\u4e92\u8054\u7f51\u8fde\u63a5\u7684\u60c5\u51b5\u4e0b\u8fd0\u884c\uff0c\u7528\u6237\u53ef\u4ee5\u968f\u65f6\u968f\u5730\u4f7f\u7528App\u3002<\/p>\n

3. \u66f4\u5f3a\u5927\u7684\u529f\u80fd\uff1a\u7f51\u9875\u6253\u5305\u540e\u7684\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u8bbf\u95ee\u684c\u9762\u64cd\u4f5c\u7cfb\u7edf\u7684\u66f4\u591a\u539f\u751f\u529f\u80fd\uff0c\u5b9e\u73b0\u66f4\u9ad8\u6548\u3001\u66f4\u7a33\u5b9a\u7684\u529f\u80fd\u4f53\u9a8c\u3002<\/p>\n

\u56db\u3001\u7f51\u9875\u6253\u5305\u7535\u8111App\u7684\u5c40\u9650\u6027<\/p>\n

1. \u6027\u80fd\uff1a\u7f51\u9875\u6253\u5305\u540e\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u65f6\u9700\u8981\u52a0\u8f7d\u5b8c\u6574\u7684\u6d4f\u89c8\u5668\u5185\u6838\uff0c\u8fd9\u4f1a\u5bfc\u81f4\u7a0b\u5e8f\u5360\u7528\u8f83\u9ad8\u7684\u5185\u5b58\u548cCPU\u8d44\u6e90\uff0c\u6027\u80fd\u4e0a\u53ef\u80fd\u4e0d\u5982\u539f\u751f\u684c\u9762\u5e94\u7528\u3002<\/p>\n

2. \u66f4\u65b0\u9891\u7387\uff1a\u76f8\u8f83\u4e8e\u7f51\u9875\u5e94\u7528\uff0c\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u66f4\u65b0\u8f83\u4e3a\u7e41\u7410\uff0c\u9700\u8981\u7528\u6237\u4e0b\u8f7d\u5b89\u88c5\u66f4\u65b0\u5305\uff0c\u66f4\u65b0\u9891\u7387\u8f83\u4f4e\u3002<\/p>\n

\u603b\u7ed3\uff1a\u7f51\u9875\u6253\u5305\u7535\u8111App\u662f\u5c06\u7f51\u9875\u5e94\u7528\u8f6c\u6362\u4e3a\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u6280\u672f\uff0c\u53ef\u4ee5\u4e3a\u7528\u6237\u63d0\u4f9b\u66f4\u4f18\u7684\u4f7f\u7528\u4f53\u9a8c\u548c\u529f\u80fd\u3002\u6839\u636e\u5b9e\u9645\u9700\u6c42\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u548c\u65b9\u6cd5\u5c06\u7f51\u9875\u6253\u5305\u6210\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u4ece\u957f\u8fdc\u6765\u770b\uff0c\u7f51\u9875\u6253\u5305\u6280\u672f\u5c06\u7ee7\u7eed\u53d1\u5c55\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u6253\u9020\u66f4\u591a\u9ad8\u8d28\u91cf\u7684\u684c\u9762\u5e94\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u968f\u7740\u4e92\u8054\u7f51\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u7f51\u9875\u5e94\u7528\u8bde\u751f\uff0c\u5b83\u4eec\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ebf\u4e0a\u529f\u80fd\u548c\u670d\u52a1\u3002\u4f46\u540c\u65f6\uff0c\u8bb8\u591a\u7528\u6237\u548c\u4f01\u4e1a\u4e5f\u5e0c\u671b\u5c06\u8fd9\u4e9b\u7f51\u9875\u5e94\u7528\u4ee5\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u5f62\u5f0f\u8fd0\u884c\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u4f7f\u7528\u548c\u6574\u5408\u4ed6\u4eec\u7684\u8d44\u6e90\u3002\u901a\u8fc7\u7f51\u9875\u6253\u5305\u6280<\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[10583,10582,12,3048,149],"topic":[],"class_list":["post-5714","post","type-post","status-publish","format-standard","hentry","category-appkf","tag-php","tag-app","tag-12","tag-3048","tag-149"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/5714","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\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=5714"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/5714\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=5714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=5714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=5714"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=5714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}