{"id":2026,"date":"2024-11-10T08:49:36","date_gmt":"2024-11-10T00:49:36","guid":{"rendered":"https:\/\/fwq.ai\/blog\/2026\/"},"modified":"2024-11-10T08:49:36","modified_gmt":"2024-11-10T00:49:36","slug":"%e5%a6%82%e4%bd%95%e7%94%a8-js-%e5%88%a4%e6%96%ad%e6%89%8b%e6%9c%ba%e6%98%af%e5%90%a6%e5%ae%89%e8%a3%85%e4%ba%86%e5%be%ae%e4%bf%a1%e6%88%96-qq%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/2026\/","title":{"rendered":"\u5982\u4f55\u7528 JS \u5224\u65ad\u624b\u673a\u662f\u5426\u5b89\u88c5\u4e86\u5fae\u4fe1\u6216 QQ\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173063142488623.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u7528 JS \u5224\u65ad\u624b\u673a\u662f\u5426\u5b89\u88c5\u4e86\u5fae\u4fe1\u6216 QQ\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u7528 JS \u5224\u65ad\u624b\u673a\u662f\u5426\u5b89\u88c5\u4e86\u5fae\u4fe1\u6216 QQ\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u7528 js \u5224\u65ad\u624b\u673a\u662f\u5426\u5b89\u88c5\u4e86\u7279\u5b9a app<\/strong><\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong><\/p>\n<p>\u5728\u5f00\u53d1\u4e00\u6b3e\u5177\u6709\u548c qq \u5feb\u6377\u767b\u5f55\u529f\u80fd\u7684 cordova app \u65f6\uff0c\u5f00\u53d1\u8005\u9762\u4e34\u4e86\u5982\u4f55\u5224\u65ad\u624b\u673a\u662f\u5426\u5df2\u5b89\u88c5\u5fae\u4fe1\u6216 qq \u7684\u96be\u9898\u3002\u7531\u4e8e app store \u62d2\u7edd\u4e86 ios \u7aef\u63d0\u4ea4\u7533\u8bf7\uff0c\u5f00\u53d1\u8005\u5e0c\u671b\u5728\u6ca1\u6709\u6253\u5f00\u5e94\u7528\u7684\u60c5\u51b5\u4e0b\uff0c\u4ec5\u901a\u8fc7 js \u5224\u65ad\u662f\u5426\u5df2\u5b89\u88c5\u5fae\u4fe1\u6216 qq\uff0c\u5e76\u6839\u636e\u7ed3\u679c\u9690\u85cf\u76f8\u5e94\u7684\u5feb\u6377\u767b\u5f55\u6309\u94ae\u3002<\/p>\n<p><strong>\u7b54\u6848\uff1a<\/strong><\/p>\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\uff0c\u53ef\u4ee5\u4f7f\u7528\u7531\u7b2c\u4e09\u65b9\u5f00\u53d1\u8005\u63d0\u4f9b\u7684\u63d2\u4ef6\u3002<\/p>\n<p><strong>\u63a8\u8350\u63d2\u4ef6\uff1a<\/strong><\/p>\n<p>http:\/\/ask.dcloud.net.cn\/question\/14430<\/p>\n<p>\u8be5\u63d2\u4ef6\u63d0\u4f9b\u4e86\u7528\u4e8e\u5224\u65ad\u5e94\u7528\u662f\u5426\u5df2\u5b89\u88c5\u7684 api\uff0c\u5177\u4f53\u5982\u4e0b\uff1a<\/p>\n<pre>if (plus.os.name == \"iOS\") {\n  window.fun = function() {\n    \/\/ \u5982\u679c\u5df2\u5b89\u88c5\u5fae\u4fe1\n    var wx = plus.runtime.installed(\"weixin:\/\/\");\n    if (wx.installed) {\n      \/\/ \u5fae\u4fe1\u5df2\u5b89\u88c5\n      document.getElementById(\"wxBtn\").style.display=\"block\";\n    }\n    \n    \/\/ \u5982\u679c\u5df2\u5b89\u88c5QQ\n    var qq = plus.runtime.installed(\"mqq:\/\/\");\n    if (qq.installed) {\n      \/\/ QQ\u5df2\u5b89\u88c5\n      document.getElementById(\"qqBtn\").style.display=\"block\";\n    }\n  }\n  plus.runtime.getProperty(plus.runtime.appid, fun);\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u901a\u8fc7\u8c03\u7528\u6b64\u63d2\u4ef6\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5224\u65ad\u624b\u673a\u4e0a\u662f\u5426\u5df2\u5b89\u88c5\u5fae\u4fe1\u6216 qq\uff0c\u5e76\u6839\u636e\u7ed3\u679c\u63a7\u5236\u5bf9\u5e94\u5feb\u6377\u767b\u5f55\u6309\u94ae\u7684\u663e\u793a\u4e0e\u9690\u85cf\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u7528 JS \u5224\u65ad\u624b\u673a\u662f\u5426\u5b89\u88c5\u4e86\u6216 QQ\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u7528 js \u5224\u65ad\u624b\u673a\u662f\u5426\u5b89\u88c5\u4e86\u7279\u5b9a app \u95ee\u9898\uff1a \u5728\u5f00\u53d1\u4e00\u6b3e\u5177\u6709\u548c qq \u5feb\u6377\u767b\u5f55\u529f\u80fd\u7684 cordova app \u65f6\uff0c\u5f00\u53d1\u8005\u9762\u4e34\u4e86\u5982\u4f55\u5224\u65ad\u624b\u673a\u662f\u5426\u5df2\u5b89\u88c5\u5fae\u4fe1\u6216 qq \u7684\u96be\u9898\u3002\u7531\u4e8e app store \u62d2\u7edd\u4e86 ios \u7aef\u63d0\u4ea4\u7533\u8bf7\uff0c\u5f00\u53d1\u8005\u5e0c\u671b\u5728\u6ca1\u6709\u6253\u5f00\u5e94\u7528\u7684\u60c5\u51b5\u4e0b\uff0c\u4ec5\u901a\u8fc7 js \u5224\u65ad\u662f\u5426\u5df2\u5b89\u88c5\u5fae\u4fe1\u6216 qq\uff0c\u5e76\u6839\u636e\u7ed3\u679c\u9690\u85cf\u76f8\u5e94\u7684\u5feb\u6377\u767b\u5f55\u6309\u94ae\u3002 \u7b54\u6848\uff1a \u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\uff0c\u53ef\u4ee5\u4f7f\u7528\u7531\u7b2c\u4e09\u65b9\u5f00\u53d1\u8005\u63d0\u4f9b\u7684\u63d2\u4ef6\u3002 \u63a8\u8350\u63d2\u4ef6\uff1a http:\/\/ask.dcloud.net.cn\/question\/14430 \u8be5\u63d2\u4ef6\u63d0\u4f9b\u4e86\u7528\u4e8e\u5224\u65ad\u5e94\u7528\u662f\u5426\u5df2\u5b89\u88c5\u7684 api\uff0c\u5177\u4f53\u5982\u4e0b\uff1a if (plus.os.name == &#8220;iOS&#8221;) { window.fun = function() { \/\/ \u5982\u679c\u5df2\u5b89\u88c5\u5fae\u4fe1 var wx = plus.runtime.installed(&#8220;weixin:\/\/&#8221;); if (wx.installed) { \/\/ \u5fae\u4fe1\u5df2\u5b89\u88c5 document.getElementById(&#8220;wxBtn&#8221;).style.display=&#8221;block&#8221;; } \/\/ \u5982\u679c\u5df2\u5b89\u88c5QQ var qq = plus.runtime.installed(&#8220;mqq:\/\/&#8221;); [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-2026","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=2026"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2026\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=2026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=2026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=2026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}