{"id":8955,"date":"2022-08-30T10:25:37","date_gmt":"2022-08-30T02:25:37","guid":{"rendered":"https:\/\/sdeno.com\/?p=8955"},"modified":"2022-08-30T10:43:24","modified_gmt":"2022-08-30T02:43:24","slug":"%e8%a7%a3%e5%86%b3%ef%bc%9a%e5%be%ae%e4%bf%a1%e5%ad%97%e4%bd%93%e6%94%be%e5%a4%a7%e7%a0%b4%e5%9d%8f%e5%b8%83%e5%b1%80","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=8955","title":{"rendered":"\u89e3\u51b3\uff1a\u5fae\u4fe1\u5b57\u4f53\u653e\u5927\u7834\u574f\u5e03\u5c40"},"content":{"rendered":"<p>\u5fae\u4fe1\u5b57\u4f53\u653e\u5927 \u5e03\u5c40\u53d8\u4e71<\/p>\n<p>ios\u548c\u5b89\u5353\u9700\u8981\u5206\u5f00\u8bbe\u7f6e\uff0c\u5728app.vue\u4e2d\u5373\u53ef<br \/>\nios\u4e00\u884c\u4ee3\u7801\u5c31\u53ef\u4ee5\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;script type=\"text\/javascript\" src=\"https:\/\/res.wx.qq.com\/open\/js\/jweixin-1.2.0.js\"&gt;&lt;\/script&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>ios:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;style&gt;\r\nbody { \/* IOS\u7981\u6b62\u5fae\u4fe1\u8c03\u6574\u5b57\u4f53\u5927\u5c0f *\/\r\n -webkit-text-size-adjust: 100% !important;\r\n text-size-adjust: 100% !important;\r\n -moz-text-size-adjust: 100% !important;\r\n}\r\n&lt;\/style&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5b89\u5353\uff1a\u5b89\u5353\u4e3b\u8981\u662f\u8c03\u7528\u5fae\u4fe1\u5185\u7f6e\u5c5e\u6027<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;script&gt;\r\n    (function() {\r\n        if (typeof WeixinJSBridge === 'object' &amp;&amp; typeof WeixinJSBridge.invoke === 'function') {\r\n            changeSize()\r\n        } else {\r\n            document.addEventListener('WeixinJSBridgeReady', changeSize, false)\r\n        }\r\n        function changeSize() {\r\n            \/\/ \u8bbe\u7f6e\u7f51\u9875\u5b57\u4f53\u4e3a\u9ed8\u8ba4\u5927\u5c0f\r\n            WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize': 0 })\r\n            \/\/ \u91cd\u5199\u8bbe\u7f6e\u7f51\u9875\u5b57\u4f53\u5927\u5c0f\u7684\u4e8b\u4ef6\r\n            WeixinJSBridge.on('menu:setfont', function() {\r\n                WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize': 0 })\r\n            })\r\n        }\r\n    })()\r\n&lt;\/script&gt;\r\n&lt;!-- \u5f3a\u5236\u7981\u6b62\u7528\u6237\u4fee\u6539\u5fae\u4fe1\u5ba2\u6237\u7aef\u7684\u5b57\u4f53\u5927\u5c0f---end--- --&gt;<\/pre>\n<p>\u6216\u8005<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">(function () {\r\n    if (typeof WeixinJSBridge == \"object\" &amp;&amp; typeof WeixinJSBridge.invoke == \"function\") {\r\n        handleFontSize();\r\n    } else {\r\n        if (document.addEventListener) {\r\n            document.addEventListener(\"WeixinJSBridgeReady\", handleFontSize, false);\r\n        } else if (document.attachEvent) {\r\n            document.attachEvent(\"WeixinJSBridgeReady\", handleFontSize);\r\n            document.attachEvent(\"onWeixinJSBridgeReady\", handleFontSize);\r\n        }\r\n    }\r\n    function handleFontSize() {\r\n        WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize': 0 });\r\n        WeixinJSBridge.on('menu:setfont', function () {\r\n            WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize': 0 });\r\n        });\r\n    }\r\n})();\t\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/blog.csdn.net\/weixin_42426880\/article\/details\/109525936?spm=1001.2101.3001.6650.2&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EESLANDING%7Edefault-2-109525936-blog-122479191.pc_relevant_multi_platform_whitelistv4eslandingctr&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EESLANDING%7Edefault-2-109525936-blog-122479191.pc_relevant_multi_platform_whitelistv4eslandingctr&amp;utm_relevant_index=3\" target=\"_blank\" rel=\"noopener\">https:\/\/blog.csdn.net\/weixin_42426880\/article\/details\/109525936?spm=1001.2101.3001.6650.2&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EESLANDING%7Edefault-2-109525936-blog-122479191.pc_relevant_multi_platform_whitelistv4eslandingctr&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EESLANDING%7Edefault-2-109525936-blog-122479191.pc_relevant_multi_platform_whitelistv4eslandingctr&amp;utm_relevant_index=3<\/a><\/p>\n<p><a href=\"https:\/\/blog.csdn.net\/Cheris_LT\/article\/details\/122479191\" target=\"_blank\" rel=\"noopener\">https:\/\/blog.csdn.net\/Cheris_LT\/article\/details\/122479191<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5fae\u4fe1\u5b57\u4f53\u653e\u5927 \u5e03\u5c40\u53d8\u4e71 ios\u548c\u5b89\u5353\u9700\u8981\u5206\u5f00\u8bbe\u7f6e\uff0c\u5728app.vue\u4e2d\u5373\u53ef ios\u4e00\u884c\u4ee3\u7801\u5c31\u53ef\u4ee5\uff1a &lt;sc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-8955","post","type-post","status-publish","format-standard","hentry","category-11"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/8955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8955"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/8955\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}