{"id":16997,"date":"2024-03-01T15:31:33","date_gmt":"2024-03-01T07:31:33","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=16997"},"modified":"2024-03-01T15:31:33","modified_gmt":"2024-03-01T07:31:33","slug":"%e7%bd%91%e5%9d%80%e6%89%93%e5%8c%85%e5%b0%81%e8%a3%85%e6%88%90app%e6%96%b9%e6%b3%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/16997\/","title":{"rendered":"\u7f51\u5740\u6253\u5305\u5c01\u88c5\u6210app\u65b9\u6cd5\u4ecb\u7ecd"},"content":{"rendered":"

\u7f51\u5740\u6253\u5305\u5c01\u88c5\u6210APP\uff1a\u539f\u7406\u4e0e\u8be6\u7ec6\u4ecb\u7ecd<\/p>\n

\u968f\u7740\u667a\u80fd\u624b\u673a\u7684\u666e\u53ca\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u7528\u6237\u5f00\u59cb\u5728\u79fb\u52a8\u8bbe\u5907\u4e0a\u4f7f\u7528\u5404\u79cd\u5e94\u7528\u3002\u4e3a\u4e86\u6ee1\u8db3\u7528\u6237\u9700\u6c42\uff0c\u8bb8\u591a\u7f51\u7ad9\u5f00\u53d1\u8005\u5f00\u59cb\u5c06\u7f51\u5740\u6253\u5305\u5c01\u88c5\u6210APP\uff0c\u4f7f\u7528\u6237\u80fd\u591f\u65b9\u4fbf\u5730\u5728\u624b\u673a\u4e0a\u4f7f\u7528\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u7f51\u5740\u6253\u5305\u5c01\u88c5\u6210APP\u7684\u539f\u7406\u4ee5\u53ca\u8be6\u7ec6\u8fc7\u7a0b\u3002<\/p>\n

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

\u7f51\u5740\u6253\u5305\u5c01\u88c5\u6210APP\u901a\u5e38\u91c7\u7528\u7684\u6280\u672f\u662fWebView\u6280\u672f\u3002WebView\u662f\u4e00\u79cd\u57fa\u4e8e\u6d4f\u89c8\u5668\u7684\u5185\u7f6e\u7ec4\u4ef6\uff0c\u5b83\u5185\u5d4c\u4e8e\u5e94\u7528\u4e2d\uff0c\u5141\u8bb8\u5f00\u53d1\u8005\u5728\u5e94\u7528\u5185\u90e8\u52a0\u8f7d\u7f51\u7edc\u8d44\u6e90\uff0c\u4f8b\u5982HTML\u3001CSS\u548cJavaScript\u7b49\u3002\u901a\u8fc7\u5c06\u7f51\u5740\u5c01\u88c5\u6210APP\uff0c\u7528\u6237\u53ef\u4ee5\u50cf\u8bbf\u95ee\u539f\u751f\u5e94\u7528\u4e00\u6837\u8bbf\u95ee\u7f51\u7ad9\uff0c\u5e76\u5728\u624b\u673a\u4e0a\u83b7\u5f97\u66f4\u597d\u7684\u4f53\u9a8c\u3002\u540c\u65f6\uff0c\u7f51\u5740\u6253\u5305\u5c01\u88c5\u6210APP\u6709\u52a9\u4e8e\u8282\u7701\u5f00\u53d1\u65f6\u95f4\u548c\u6210\u672c\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u4e3a\u6bcf\u4e2a\u5e73\u53f0\u5355\u72ec\u5f00\u53d1\u539f\u751f\u5e94\u7528\u3002<\/p>\n

\u4e8c\u3001\u8be6\u7ec6\u4ecb\u7ecd<\/p>\n

\u5c01\u88c5\u7f51\u5740\u6210APP\u4e3b\u8981\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n

1. \u51c6\u5907\u5de5\u4f5c<\/p>\n

\u8981\u5c06\u7f51\u5740\u5c01\u88c5\u6210APP\uff0c\u9996\u5148\u9700\u8981\u62e5\u6709\u4e00\u4e2a\u5b8c\u6574\u7684\u7f51\u7ad9\u7f51\u5740\u3002\u786e\u4fdd\u7f51\u7ad9\u5df2\u7ecf\u8fdb\u884c\u4e86\u9488\u5bf9\u79fb\u52a8\u8bbe\u5907\u7684\u4f18\u5316\uff0c\u4ee5\u4fbf\u5728\u624b\u673a\u4e0a\u663e\u793a\u826f\u597d\u3002<\/p>\n

2. \u9009\u62e9\u5f00\u53d1\u5de5\u5177<\/p>\n

\u6709\u591a\u79cd\u5de5\u5177\u53ef\u4ee5\u7528\u4e8e\u5c06\u7f51\u7ad9\u5c01\u88c5\u6210APP\u3002\u5176\u4e2d\uff0cCordova\u3001Ionic\u3001React Native\u7b49\u662f\u6d41\u884c\u7684\u5f00\u53d1\u6846\u67b6\u3002\u5b83\u4eec\u4f7f\u7528WebView\u6280\u672f\uff0c\u5e76\u5141\u8bb8\u5728\u4e0d\u540c\u5e73\u53f0\u4e0a\u6784\u5efa\u6df7\u5408\u5e94\u7528\u3002\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u548c\u6280\u80fd\u9009\u62e9\u5408\u9002\u7684\u6846\u67b6\u3002<\/p>\n

3. \u5f00\u53d1\u73af\u5883\u642d\u5efa<\/p>\n

\u642d\u5efa\u5f00\u53d1\u73af\u5883\u9700\u8981\u5b89\u88c5\u76f8\u5e94\u7684\u8f6f\u4ef6\u548c\u5e93\u3002\u4f8b\u5982\uff0c\u4f7f\u7528Cordova\u65f6\u9700\u8981\u5b89\u88c5Node.js\u3001NPM\u4ee5\u53ca\u76f8\u5e94\u7684Cordova\u547d\u4ee4\u884c\u5de5\u5177\u3002\u540c\u65f6\uff0c\u8fd8\u9700\u6839\u636e\u5f00\u53d1\u76ee\u6807\u5e73\u53f0\uff0c\u5982Android\u6216iOS\uff0c\u5b89\u88c5\u76f8\u5e94\u7684\u5f00\u53d1\u5de5\u5177\u3002\u4f8b\u5982\uff0c\u82e5\u5f00\u53d1Android\u5e94\u7528\uff0c\u9700\u8981\u5b89\u88c5Android Studio\u548cSDK\u3002<\/p>\n

4. \u521b\u5efa\u9879\u76ee<\/p>\n

\u4f7f\u7528\u6846\u67b6\u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee\u3002\u4ee5Cordova\u4e3a\u4f8b\uff0c\u8fd0\u884c\u547d\u4ee4\u884c`cordova create your-pr<\/p>\n

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

oject-name com.example.yourdomain your-project-name`\u3002\u9879\u76ee\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\u5e76\u4f7f\u7528`cordova platform add android`\uff08\u6216`cordova platform add ios`\uff09\u6dfb\u52a0\u76ee\u6807\u5e73\u53f0\u3002<\/p>\n

discuz\u624b\u673a\u7248\u5c01\u88c5app<\/a>5. \u5c01\u88c5\u7f51\u5740<\/p>\n

\u627e\u5230\u9879\u76ee\u4e2d\u7684\u201cindex.html\u201d\u6587\u4ef6\uff0c\u5e76\u66ff\u6362\u6587\u4ef6\u5185\u5bb9\u3002\u7528WebView\u52a0\u8f7d\u76ee\u6807\u7f51\u5740\uff0c\u53ef\u4ee5\u5728“\u6807\u7b7e\u5185\u4f7f\u7528JavaScript\u4ee3\u7801\uff0c\u5982\uff1a<\/p>\n

“`javascript<\/p>\n

document.addEventListener(‘DOMContentLoaded’, function() {<\/p>\n

var webView = document.createElement(‘webview’);<\/p>\n

webView.setAttribute(‘src’, ‘https:\/\/www.example.com’);<\/p>\n

webView.setAttribute(‘style’, ‘width:100%; height:100%’);<\/p>\n

document.body.appendChild(webView);<\/p>\n

});<\/p>\n

“`<\/p>\n

\u6ce8\u610f\u5c06`https:\/\/www.example.com`\u66ff\u6362\u4e3a\u5b9e\u9645\u7684\u7f51\u5740\u3002<\/p>\n

6. \u7f16\u8bd1\u4e0e\u6d4b\u8bd5<\/p>\n

\u4f7f\u7528\u6846\u67b6\u63d0\u4f9b\u7684\u547d\u4ee4\u7f16\u8bd1\u548c\u8fd0\u884c\u5e94\u7528\u3002\u4f8b\u5982\uff0c\u5728Cordova\u4e2d\u8fd0\u884c`cordova build android`\u548c`cordova run android`\u3002\u5982\u6709\u9700\u8981\uff0c\u8c03\u6574Web\u9875\u9762\u5728\u79fb\u52a8\u8bbe\u5907\u4e0a\u7684\u5e03\u5c40\u548c\u6837\u5f0f\u3002<\/p>\n

7. \u53d1\u5e03APP<\/p>\n

\u786e\u4fddAPP\u8fbe\u5230\u9884\u671f\u7684\u529f\u80fd\u548c\u6548\u679c\u540e\uff0c\u53ef\u4ee5\u5c06\u5176\u53d1\u5e03\u5230\u5404\u5927\u5e94\u7528\u5e02\u573a\u3002\u9996\u5148\uff0c\u9700\u8981\u7b7e\u540d\u548c\u6253\u5305\uff0c\u9488\u5bf9Android\u751f\u6210APK\u6587\u4ef6\uff0c\u9488\u5bf9iOS\u751f\u6210IPA\u6587\u4ef6\u3002\u63a5\u7740\uff0c\u5b8c\u6210\u5e94\u7528\u5e02\u573a\u7684\u4e0a\u67b6\u7533\u8bf7\u5e76\u7b49\u5f85\u5ba1\u6838\u3002\u5b8c\u6210\u5ba1\u6838\u540e\uff0c\u7528\u6237\u5373\u53ef\u5728\u5e94\u7528\u5e02\u573a\u4e0b\u8f7d\u5e76\u5b89\u88c5APP\u3002<\/p>\n

\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u53ef\u4ee5\u5c06\u7f51\u5740\u6253\u5305\u5c01\u88c5\u6210APP\u3002\u8fd9\u79cd\u65b9\u6cd5\u5177\u6709\u5f00\u53d1\u901f\u5ea6\u5feb\u3001\u6210\u672c\u4f4e\u7684\u4f18\u52bf\u3002\u4f46\u5728\u6027\u80fd\u548c\u539f\u751f\u4f53\u9a8c\u4e0a\u53ef\u80fd\u4e0d\u5982\u539f\u751f\u5e94\u7528\u3002\u56e0\u6b64\uff0c\u9700\u8981\u6839\u636e\u9879\u76ee\u9700\u6c42\u6743\u8861\u5b9e\u9645\u60c5\u51b5\u3002<\/p>\n

\u5c06web\u7f51\u7ad9\u5c01\u88c5app<\/a> | <\/span>app\u5c01\u5305\u8f6f\u4ef6<\/a> | <\/span>\u672c\u5730html\u5c01\u88c5\u6210app<\/a> | <\/span>html\u5c01\u88c5\u6210apk<\/a> | <\/span>\u6c38\u4e45app\u5c01\u88c5<\/a> | <\/span>iosytknetwork\u518d\u5c01\u88c5<\/a> | <\/span>iosyycache\u5c01\u88c5<\/a> | <\/span>\u5b89\u5353\u5728\u7ebf\u5c01\u88c5<\/a> | <\/span>\u505a\u4e2aapp<\/a> | <\/span>apkcity<\/a> | <\/span>\u94fe\u63a5\u751f\u6210app<\/a> | <\/span>h5\u5305\u88c5\u6210app<\/a> | <\/span>\u5c01\u88c5app\u7f51\u7ad9\u4e00\u952e\u6253\u5305app<\/a> | <\/span>\u7f51\u7ad9\u505a\u4e00\u4e2aapp<\/a> | <\/span>\u4e2a\u4eba\u7b7eapp<\/a><\/p>\n<\/p>\n

2016-2023 © \u6210\u90fd\u4e03\u6247\u95e8\u79d1\u6280\u6709\u9650\u516c\u53f8 appfengzhuang.yimenapp.com<\/a> \u8700ICP\u590717005078\u53f7-4<\/a><\/p>\n<\/p>\n

<\/i><\/p>\n

layui.config({
\n base: ‘\/assets\/layui\/lay\/modules\/’
\n , version: ‘110’
\n }).use(‘global’).use(“element”);<\/p>\n

window.global = {
\n preview: function () {
\n var preview = document.getElementById(‘LAY_preview’);
\n return preview ? preview.innerHTML : ”;
\n }()
\n };
\n \/*\u63a8\u5e7f\u8054\u76df*\/
\n (function () {
\n var m = \/un=(\\d+)\/.exec(location.href.toLowerCase());
\n if (!m) return;
\n var d = new Date();
\n d.setTime(d.getTime() + 12 * 3600 * 1000);
\n document.cookie = “un=” + m[1] + “;path=\/;ex
android\u5c01\u88c5<\/a>pires=” + d.toGMTString();
\n })();<\/p>\n

var _hmt = _hmt || [];
\n(function() {
\n var hm = document.createElement(“script”);
\n hm.src = “https:\/\/hm.baidu.com\/hm.js?5a40a49ba871f3db98dc4daa2e1d3017”;
\n var s = document.getElementsByTagName(“script”)[0];
\n s.parentNode.insertBefore(hm, s);
\n})();<\/p>\n","protected":false},"excerpt":{"rendered":"

\u7f51\u5740\u6253\u5305\u5c01\u88c5\u6210APP\uff1a\u539f\u7406\u4e0e\u8be6\u7ec6\u4ecb\u7ecd\u968f\u7740\u667a\u80fd\u624b\u673a\u7684\u666e\u53ca\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u7528\u6237\u5f00\u59cb\u5728\u79fb\u52a8\u8bbe\u5907\u4e0a\u4f7f\u7528\u5404\u79cd\u5e94\u7528\u3002\u4e3a\u4e86\u6ee1\u8db3\u7528\u6237\u9700\u6c42\uff0c\u8bb8\u591a\u7f51\u7ad9\u5f00\u53d1\u8005\u5f00\u59cb\u5c06\u7f51\u5740\u6253\u5305\u5c01\u88c5\u6210APP\uff0c\u4f7f\u7528\u6237\u80fd\u591f\u65b9\u4fbf\u5730\u5728\u624b\u673a\u4e0a\u4f7f\u7528\u3002\u672c\u6587\u5c06\u4ecb<\/p>\n","protected":false},"author":23,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[20110,15854,260,247,23],"topic":[],"class_list":["post-16997","post","type-post","status-publish","format-standard","hentry","category-appkf","tag-h5app","tag-ioswebclip","tag-260","tag-247","tag-23"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/16997","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\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=16997"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/16997\/revisions"}],"predecessor-version":[{"id":17053,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/16997\/revisions\/17053"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=16997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=16997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=16997"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=16997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}