如何选择在 Tel: 链接中拨打分机号? [英] How do I give option to dial an extension in Tel: link?
问题描述
将电话链接设为 <a href="tel:+91123456789,,123">拨号</a>
并从移动浏览器点击它时,只会传输初始号码拨号器而不是逗号或扩展名.我也试过 p
、w
和 ;ext=
但没有任何效果.p
和 w
分别更改为 '7' 和 '9'.
While putting a tel link as <a href="tel:+91123456789,,123">Dial</a>
and clicking it from a mobile browser, only initial number gets transferred to dialer and not the commas or extension. I've tried p
, w
and ;ext=
as well but nothing is working. p
and w
change to '7' and '9' respectively.
使用 Moto X 1st Gen 进行测试
Tested using Moto X 1st Gen.
推荐答案
根据 文档,tel:
方案支持 RFC 3966.阅读这些 RFC 有点像在泥板上阅读楔形文字,但据我所知,您的语法不属于该标准的一部分.看起来您想要 tel:+91123456789;ext=123
.
According to the documentation, the tel:
scheme supports RFC 3966. Reading these RFCs is a bit like reading cuneiform on clay tablets, but from what I can tell, your syntax is not part of that standard. It looks like you would want tel:+91123456789;ext=123
.
更新:您可以考虑的事情,因为 tel:+91123456789;ext=123
仅适用于低于 4.0 和 tel:+91123456789,123代码>适用于 4.0+ 将检查用户代理并推出适当的.
UPDATE: Something you can consider since tel:+91123456789;ext=123
only works for less than 4.0 and tel:+91123456789,123
works for 4.0+ would be to check the user agent and put out the appropriate one.
<a href="tel:+91123456789;ext=123">Dial</a> //Less than 4.0
<a href="tel:+91123456789,123">Dial</a> //Greater than 4.0
这篇关于如何选择在 Tel: 链接中拨打分机号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!