Fe-interview: [html] 第68天 写个例子说明HTML5在移动端如何打开APP?

Created on 22 Jun 2019  ·  4Comments  ·  Source: haizlin/fe-interview

第68天 写个例子说明HTML5在移动端如何打开APP?

html

Most helpful comment

比如说:

<a href="zhihu://">打开知乎</a>

Android 是利用 deeplinkiOS 是利用 URL Schemes

All 4 comments

用 a 标签就可以,原理是使用 deeplink 。

<a href="yourapp://page/xxx" />

比如说:

<a href="zhihu://">打开知乎</a>

Android 是利用 deeplinkiOS 是利用 URL Schemes

以上 a标签 触发的 在微信内置浏览器中是无效的
可以使用 微信的开发标签实现 唤起app

比如说:

<a href="zhihu://">打开知乎</a>

Android 是利用 deeplinkiOS 是利用 URL Schemes

Was this page helpful?
0 / 5 - 0 ratings