{"id":43643,"date":"2023-10-03T11:21:06","date_gmt":"2023-10-03T03:21:06","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=43643"},"modified":"2023-10-03T11:21:06","modified_gmt":"2023-10-03T03:21:06","slug":"ehungwd","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/43643.html","title":{"rendered":"Electron\u548cUniapp\u54ea\u4e2a\u7a33\u5b9a\uff1f"},"content":{"rendered":"
\u968f\u7740\u79fb\u52a8\u4e92\u8054\u7f51\u7684\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u5f00\u53d1\u8005\u5f00\u59cb\u4f7f\u7528Electron\u548cUniapp\u6765\u5f00\u53d1\u684c\u9762\u5e94\u7528\u548c\u79fb\u52a8\u5e94\u7528\u3002\u4f46\u662f\uff0c\u8fd9\u4e24\u79cd\u6280\u672f\u4e4b\u95f4\u5b58\u5728\u660e\u663e\u7684\u5dee\u5f02\uff0c\u8fd9\u4f7f\u5f97\u5f00\u53d1\u8005\u4e0d\u5f97\u4e0d\u8003\u8651\u54ea\u79cd\u6280\u672f\u66f4\u7a33\u5b9a\u3002\u672c\u6587\u5c06\u901a\u8fc7\u5bf9Electron\u548cUniapp\u7684\u6bd4\u8f83\uff0c\u6765\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7406\u89e3\u8fd9\u4e24\u79cd\u6280\u672f\uff0c\u4ece\u800c\u9009\u62e9\u66f4\u5408\u9002\u7684\u6280\u672f\u6765\u5f00\u53d1\u4ed6\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n
Electron\u53ef\u4ee5\u8de8\u5e73\u53f0\u5f00\u53d1\uff0c\u53ef\u4ee5\u5728Windows\u3001macOS\u548cLinux\u7b49\u684c\u9762\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\u3002\u8fd9\u610f\u5473\u7740\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528Electron\u5f00\u53d1\u4e00\u6b3e\u5e94\u7528\uff0c\u7136\u540e\u8f7b\u677e\u5730\u5c06\u5176\u53d1\u5e03\u5230\u4e0d\u540c\u5e73\u53f0\u4e0a\u3002<\/p>\n
Electron\u4f7f\u7528web\u6280\u672f\uff08\u5982HTML\u3001CSS\u548cJavaScript\uff09\u6765\u5f00\u53d1\u684c\u9762\u5e94\u7528\uff0c\u8fd9\u610f\u5473\u7740\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528\u4ed6\u4eec\u719f\u6089\u7684web\u6280\u672f\u6765\u5f00\u53d1\u684c\u9762\u5e94\u7528\uff0c\u800c\u65e0\u9700\u5b66\u4e60\u65b0\u7684\u6280\u672f\u3002<\/p>\n
Electron\u62e5\u6709\u5f3a\u5927\u7684API\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5b9e\u73b0\u66f4\u591a\u529f\u80fd\uff0c\u5982\u6587\u4ef6\u7ba1\u7406\u3001\u8bbe\u7f6e\u64cd\u4f5c\u7cfb\u7edf\u7ea7\u522b\u7684\u529f\u80fd\u7b49\u3002<\/p>\n
Uniapp\u53ef\u4ee5\u8de8\u5e73\u53f0\u5f00\u53d1\uff0c\u53ef\u4ee5\u5728Android\u3001iOS\u548c\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7b49\u79fb\u52a8\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\u3002\u8fd9\u610f\u5473\u7740\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528Uniapp\u5f00\u53d1\u4e00\u6b3e\u5e94\u7528\uff0c\u7136\u540e\u8f7b\u677e\u5730\u5c06\u5176\u53d1\u5e03\u5230\u4e0d\u540c\u5e73\u53f0\u4e0a\u3002<\/p>\n
Uniapp\u4f7f\u7528web\u6280\u672f\uff08\u5982HTML\u3001CSS\u548cJavaScript\uff09\u6765\u5f00\u53d1\u79fb\u52a8\u5e94\u7528\uff0c\u8fd9\u610f\u5473\u7740\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528\u4ed6\u4eec\u719f\u6089\u7684web\u6280\u672f\u6765\u5f00\u53d1\u79fb\u52a8\u5e94\u7528\uff0c\u800c\u65e0\u9700\u5b66\u4e60\u65b0\u7684\u6280\u672f\u3002<\/p>\n
Uniapp\u62e5\u6709\u5f3a\u5927\u7684API\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5b9e\u73b0\u66f4\u591a\u529f\u80fd\uff0c\u5982\u652f\u4ed8\u3001\u63a8\u9001\u7b49\u3002<\/p>\n
Electron\u548cUniapp\u90fd\u662f\u529f\u80fd\u5f3a\u5927\u7684\u6280\u672f\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u8f7b\u677e\u5730\u5f00\u53d1\u684c\u9762\u5e94\u7528\u548c\u79fb\u52a8\u5e94\u7528\u3002<\/strong>Electron\u53ef\u4ee5\u8de8\u5e73\u53f0\u5f00\u53d1\uff0c\u53ef\u4ee5\u5728Windows\u3001macOS\u548cLinux\u7b49\u684c\u9762\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\uff1bUniapp\u53ef\u4ee5\u8de8\u5e73\u53f0\u5f00\u53d1\uff0c\u53ef\u4ee5\u5728Android\u3001iOS\u548c\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7b49\u79fb\u52a8\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\u3002\u8fd9\u4e24\u79cd\u6280\u672f\u90fd\u4f7f\u7528web\u6280\u672f\uff08\u5982HTML\u3001CSS\u548cJavaScript\uff09\u6765\u5f00\u53d1\uff0c\u5e76\u62e5\u6709\u5f3a\u5927\u7684API\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5b9e\u73b0\u66f4\u591a\u529f\u80fd\u3002\u6700\u7ec8\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u6765\u9009\u62e9Electron\u6216Uniapp\uff0c\u4ee5\u4fbf\u5f00\u53d1\u51fa\u66f4\u7a33\u5b9a\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u968f\u7740\u79fb\u52a8\u4e92\u8054\u7f51\u7684\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u5f00\u53d1\u8005\u5f00\u59cb\u4f7f\u7528Electron\u548cUniapp\u6765\u5f00\u53d1\u684c\u9762\u5e94\u7528\u548c\u79fb\u52a8\u5e94\u7528\u3002\u4f46\u662f\uff0c\u8fd9\u4e24\u79cd\u6280\u672f\u4e4b\u95f4\u5b58\u5728\u660e\u663e\u7684\u5dee\u5f02\uff0c\u8fd9\u4f7f\u5f97\u5f00\u53d1\u8005\u4e0d\u5f97\u4e0d\u8003\u8651\u54ea\u79cd\u6280\u672f\u66f4<\/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-43643","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\/43643","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=43643"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/43643\/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=43643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=43643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=43643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}