Skip to content

手Q内置浏览器中点击链接加群 #64

@Dream4ever

Description

@Dream4ever

需求描述

在手Q内置浏览器中打开的网页,想要实现点击某个地方就能够自动跳转到加群的界面。

实现过程

先Google了一下,找到了官方文档:一键加群 - QQ群官网。先采用网页方式的代码,但是在自己的 iPhone 7 中可以跳转到加群界面,LTY 和 ZJH 的 Android 就会卡在腾讯的中转界面上。

然后再 Google 其它的可用文档,看到了同一个作者的这两篇文章:网页代码唤起qq加群界面方案大全qq加群链接获取最新有效途径。看了看这两篇文章,又把腾讯官网上提供的二维码加群方式的二维码解析了一下,解析出来的 URL 刚好就是上面两篇文章中第二篇里提到的一种格式:

http://qm.qq.com/cgi-bin/qm/qr?k=11111111111111111111111111111111

把 URL 改成这种格式之后,在两位同事的 Android 上也能正常跳转到加群的界面了。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Front-endEverything you see and experienceJSJavascript

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions