{"id":322,"date":"2022-03-16T15:34:21","date_gmt":"2022-03-16T07:34:21","guid":{"rendered":"https:\/\/fugary.com\/?p=322"},"modified":"2022-03-16T15:34:21","modified_gmt":"2022-03-16T07:34:21","slug":"cordova%e6%88%96h5%e9%a1%b9%e7%9b%ae%e6%89%8b%e6%9c%ba%e6%b5%8f%e8%a7%88%e5%99%a8%e8%b0%83%e8%af%95","status":"publish","type":"post","link":"https:\/\/fugary.com\/?p=322","title":{"rendered":"Cordova\u6216H5\u9879\u76ee\u624b\u673a\u6d4f\u89c8\u5668\u8c03\u8bd5"},"content":{"rendered":"<h3>\u80cc\u666f<\/h3>\n<p>\u200b   \u6709\u65f6\u5019\u4f1a\u9047\u5230\u4e00\u4e9b<code>H5<\/code>\u6216\u8005<code>Cordova<\/code>\u9879\u76ee\u5728\u5f00\u53d1\u73af\u5883\uff08\u5f00\u53d1\u90fd\u7528\u672c\u5730\u6d4f\u89c8\u5668\u6a21\u62df\uff09\u8fd0\u884c\u6b63\u5e38\uff0c\u4f46\u662f\u5230\u4e86\u624b\u673a\u4e0a\u8fd0\u884c\u5c31\u8fd0\u884c\u5f02\u5e38\uff0c\u624b\u673a\u6d4f\u89c8\u5668\u6ca1\u6709<code>F12<\/code>\u7b49\u5f00\u53d1\u8005\u5de5\u5177\uff0c\u56e0\u6b64\u8981\u67e5\u770b\u5728\u771f\u673a\u4e0a\u8fd0\u884c\u65f6\u7684\u9519\u8bef\u53ea\u80fd\u901a\u8fc7\u4e00\u4e9b\u5176\u4ed6\u65b9\u5f0f\u6765\u67e5\u770b\u3002<\/p>\n<p>\u76ee\u524d<code>Cordova<\/code>\u6216\u8005<code>H5<\/code>\u9879\u76ee\u90fd\u652f\u6301\u5728\u6d4f\u89c8\u5668\u5f00\u53d1\u8005\u5de5\u5177\u67e5\u770b\u3002<\/p>\n<h3>Android\u9875\u9762\u8c03\u8bd5<\/h3>\n<p>Android\u624b\u673a\u53ef\u4ee5\u8fde\u63a5\u7535\u8111\u5e76\u914d\u5408Chrome\u6765\u8c03\u8bd5web\u9875\u9762\u3002<\/p>\n<h4>\u624b\u673a\u7aef\u914d\u7f6e<\/h4>\n<p>\u9996\u5148\u5f00\u53d1\u8005\u6a21\u5f0f\uff0c\u4e00\u822c\u90fd\u662f\u5728\u8bbe\u7f6e\u4e2d\u627e\u5230\u7248\u672c\u53f7\uff0c\u8fde\u7eed\u70b97-10\u4e0b\u5c31\u6253\u5f00\u4e86\u5f00\u53d1\u8005\u6a21\u5f0f\u3002<\/p>\n<p>\u5f00\u542f\u3010\u5f00\u53d1\u8005\u9009\u9879\u3011\uff0c\u5f00\u542f\u3010USB\u8c03\u8bd5\u3011\u6a21\u5f0f\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/529a2c61c28735d1b71301630cb2c5a8\/202203161500118.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/529a2c61c28735d1b71301630cb2c5a8\/202203161500118.png\" alt=\"Screenshot_2022_0316_145625\" \/><\/div><\/p>\n<h4>\u7535\u8111\u7aef\u914d\u7f6e<\/h4>\n<p>\u9996\u5148\u662f\u9700\u8981\u6709<code>Chrome<\/code>\u6d4f\u89c8\u5668\uff0c\u7136\u540e\u5c06\u624b\u673a\u8fde\u63a5\u5230\u7535\u8111\uff0c\u7136\u540e\u6d4f\u89c8\u5668\u5730\u5740\u680f\u8f93\u5165\uff1a<\/p>\n<pre><code class=\"language-http\">chrome:\/\/inspect<\/code><\/pre>\n<p>\u53ef\u4ee5\u8fdb\u5165\u9875\u9762\uff0c\u5982\u679c\u6709\u624b\u673a\u6216\u8005\u6a21\u62df\u5668\u5f00\u7740\u76f8\u5173<code>Cordova APP<\/code>\u6216\u8005<code>H5<\/code>\uff0c\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u754c\u9762\uff0c\u6211\u8fd9\u91cc\u662f\u5f00\u4e86\u4e00\u4e2a\u6a21\u62df\u5668+\u4e00\u4e2a\u624b\u673a\u7aef\u3002<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/830d616aaf76ec33125f296afa5a7a36\/202203161503853.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/830d616aaf76ec33125f296afa5a7a36\/202203161503853.png\" alt=\"image-20220316150333780\" \/><\/div><\/p>\n<p>\u7136\u540e\u70b9\u51fb<code>inspect<\/code>\u5c31\u53ef\u4ee5\u8fdb\u5165\u8c03\u8bd5\u9875\u9762\uff0c\u770b\u8d77\u6765\u548c\u4e00\u822c\u7684<code>chrome<\/code>\u5f00\u53d1\u8005\u5de5\u5177\u8c03\u8bd5\u6bd4\u8f83\u50cf\uff0c\u4e0d\u8fc7\u9884\u89c8\u56fe\u4e0d\u80fd\u70b9\u51fb\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/c046aa8563c2f7c2243dea3cf4772871\/202203161506842.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/c046aa8563c2f7c2243dea3cf4772871\/202203161506842.png\" alt=\"image-20220316150607719\" \/><\/div><\/p>\n<p>\u7136\u540e\u5c31\u53ef\u4ee5\u5b9e\u9645\u64cd\u4f5c\u8c03\u8bd5\u4e86\u3002<\/p>\n<h4>inspect\u8fde\u63a5\u5931\u8d25<\/h4>\n<p>\u53ef\u80fd\u6709\u4e0d\u5c11\u4eba\u4f7f\u7528<code>inspect<\/code>\u7684\u65f6\u5019\u662f404\uff0c\u8fd9\u662f\u56e0\u4e3a\u8fd9\u4e2a<code>inspect<\/code>\u9700\u8981\u8bbf\u95ee<code>google<\/code>\u7f51\u7ad9\uff0c\u5230\u56fd\u5916\u7f51\u7ad9\u8f6c\u4e00\u5708\u3002<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/0394305c4cea080cebb1e5d70248804f\/202203161520394.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/0394305c4cea080cebb1e5d70248804f\/202203161520394.png\" alt=\"image-20220316152017299\" \/><\/div><\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<ol>\n<li>\u6709\u68af\u5b50\u51fa\u56fd\u7684\u53ef\u4ee5\u8003\u8651\u901a\u8fc7<code>VPN<\/code>\u8bbf\u95ee\u3002<\/li>\n<li>\u5982\u679c\u6ca1\u6709<code>VPN<\/code>\u53ef\u4ee5\u8003\u8651\u4e0b\u8f7d\u4e00\u4e2a\u4f4e\u7248\u672c\u7684<code>Chrome<\/code>\uff0c\u7eff\u8272\u7248\u90fd\u53ef\u4ee5\uff0c\u4f4e\u7248\u672c<code>Chrome<\/code>\u53ef\u4ee5<code>inspect fallback<\/code>\u540e\u8bbf\u95ee\u3002<\/li>\n<\/ol>\n<p>\u4f4e\u7248\u672c\u6d4f\u89c8\u5668\u663e\u793a\u5982\u4e0b\uff08\u4f4e\u4e8e\u62ec\u53f7\u4e2d\u7684\u7248\u672c\u7684\u6d4f\u89c8\u5668\u624d\u80fd\u770b\u5230<code>inspect fallback<\/code>\uff09\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/033d2487c72dc328c595564bd6e17477\/202203161527080.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/033d2487c72dc328c595564bd6e17477\/202203161527080.png\" alt=\"image-20220316152741001\" \/><\/div><\/p>\n<h3>iOS\u9875\u9762\u8c03\u8bd5<\/h3>\n<p>\u5728iOS\u624b\u673a\u4e0a\uff0c\u9700\u8981\u82f9\u679c\u7535\u8111\u7684Safari\u6765\u8c03\u8bd5<\/p>\n<h4>\u624b\u673a\u7aef\u914d\u7f6e<\/h4>\n<p>\u8fdb\u5165iOS\u624b\u673a\u8bbe\u7f6e\uff0c\u627e\u5230\u3010Safari\u6d4f\u89c8\u5668\u3011\uff0c\u7136\u540e\u62c9\u5230\u6700\u540e\u627e\u5230\u3010\u9ad8\u7ea7\u3011\uff0c\u5f00\u542f\u3010\u7f51\u9875\u68c0\u67e5\u5668\u3011\u5f00\u5173\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/4a6721c9b07455e2a301f5facc994d18\/202203161348109.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/4a6721c9b07455e2a301f5facc994d18\/202203161348109.png\" alt=\"image-20220316134848026\" \/><\/div><\/p>\n<p>\u5f00\u542f\u4e4b\u540e\u628a\u624b\u673a\u7528\u6570\u636e\u7ebf\u8fde\u63a5\u5230\u82f9\u679cMac\u7535\u8111\u4e0a\u3002<\/p>\n<h4>Mac\u914d\u7f6e<\/h4>\n<p>\u6253\u5f00Safari\u6d4f\u89c8\u5668\uff0c\u5982\u679c\u6ca1\u6709\u3010\u5f00\u53d1\u3011\u83dc\u5355\uff0c\u9700\u8981\u628a\u3010\u5f00\u53d1\u3011\u83dc\u5355\u914d\u7f6e\u51fa\u6765\uff1a<\/p>\n<p>Safari\u6d4f\u89c8\u5668-&gt;\u504f\u597d\u8bbe\u7f6e-&gt;\u9ad8\u7ea7-&gt;\u3010\u5728\u83dc\u5355\u680f\u4e2d\u663e\u793a\u201c\u5f00\u53d1\u201d\u83dc\u5355\u3011<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/e8794f7496e03b34903bd449dbe3e659\/202203161421696.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/e8794f7496e03b34903bd449dbe3e659\/202203161421696.png\" alt=\"image-20220316142130471\" \/><\/div><\/p>\n<p>\u6709\u4e86\u3010\u5f00\u53d1\u3011\u83dc\u5355\u4e4b\u540e\uff0c\u8fde\u63a5\u624b\u673a\u5230\u7535\u8111\uff0c\u624b\u673a\u4e0a\u542f\u52a8\u4e86Safari\u6d4f\u89c8\u5668\u5e76\u6d4f\u89c8\u9700\u8981\u8c03\u8bd5\u7684\u7f51\u9875\u7684\u8bdd\uff0c\u53ef\u4ee5\u770b\u5230\u624b\u673a\u5df2\u7ecf\u663e\u793a\u5728\u83dc\u5355\u4e2d\u4e86\u3002<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/134eaa5bee66bfb03ffd455d1c38751d\/202203161420709.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/134eaa5bee66bfb03ffd455d1c38751d\/202203161420709.png\" alt=\"image-20220316142011528\" \/><\/div><\/p>\n<p>\u70b9\u51fb\u4e4b\u540e\u53ef\u4ee5\u770b\u5230\u7c7b\u4f3c\u5f00\u53d1\u8005\u5de5\u5177\u7684\u754c\u9762\uff0c\u4e0d\u8fc7<code>Safari<\/code>\u548c<code>Android<\/code>\u7684<code>Chrome<\/code>\u8c03\u8bd5\u4e0d\u4e00\u6837\uff0c\u770b\u4e0d\u5230\u9884\u89c8\u56fe\u3002<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/e768d74292737cf458a4dfdab538977d\/202203161436301.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/e768d74292737cf458a4dfdab538977d\/202203161436301.png\" alt=\"image-20220316143618169\" \/><\/div><\/p>\n<h4>Cordova\u8c03\u8bd5<\/h4>\n<p>\u5b9e\u9645\u4f7f\u7528\u6d4b\u8bd5\u53d1\u73b0\uff0c\u5982\u679c\u662f<code>Cordova APP<\/code>\u7684\u8bdd\uff0c\u53ea\u6709\u901a\u8fc7<code>xcode<\/code>\u8c03\u8bd5\u5b89\u88c5\u5230\u624b\u673a\u4e0a\u7684<code>APP<\/code>\u624d\u80fd\u663e\u793a\u51fa\u6765\uff08\u6a21\u62df\u5668\u8fd0\u884c\u4e5f\u53ef\u4ee5\uff09\uff0c\u6b63\u5f0f\u7248\u672c\u6216\u8005<code>TestFlight<\/code>\u7248\u672c\u4f3c\u4e4e\u90fd\u5728\u5f00\u53d1\u83dc\u5355\u4e2d\u770b\u4e0d\u5230\uff0c\u4e5f\u5c31\u4e0d\u80fd\u505a\u7f51\u9875\u8c03\u8bd5\u3002<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/c51f5ae9d3f54397b1b152cc249adc0f\/202203161433327.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/uploads\/c51f5ae9d3f54397b1b152cc249adc0f\/202203161433327.png\" alt=\"image-20220316143345200\" \/><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u80cc\u666f \u200b \u6709\u65f6\u5019\u4f1a\u9047\u5230\u4e00\u4e9bH5\u6216\u8005Cordova\u9879\u76ee\u5728\u5f00\u53d1\u73af\u5883\uff08\u5f00\u53d1\u90fd\u7528\u672c\u5730\u6d4f\u89c8\u5668\u6a21\u62df\uff09\u8fd0\u884c\u6b63\u5e38\uff0c\u4f46\u662f\u5230\u4e86\u624b\u673a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[26,68,69,61],"_links":{"self":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/322"}],"collection":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=322"}],"version-history":[{"count":1,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/322\/revisions"}],"predecessor-version":[{"id":323,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/322\/revisions\/323"}],"wp:attachment":[{"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}