【问题标题】:How do I include # in tel:123#?如何在 tel:123# 中包含 #?
【发布时间】:2013-08-01 00:40:15
【问题描述】:

如何使用 tel:123# 在移动浏览器自动拨号器中填充“#”?

例如:

<a href='tel:123#'>Dial this number</a> 

这只会在本机自动拨号器中填充“123”。有什么方法可以在拨号器中包含#?

【问题讨论】:

标签: html mobile tel


【解决方案1】:

你不能,见How to use tel: with * (star, asterisk) or # (hash, pound) on iOs?


Apple Link 应该会有所帮助。

为了防止用户恶意重定向电话或更改 电话或帐户的行为,电话应用程序支持 tel 方案中的大多数(但不是全部)特殊字符。 具体来说,如果 URL 包含 * 或 # 字符,电话 应用程序不会尝试拨打相应的电话号码。

【讨论】:

    【解决方案2】:

    我在 android 上也有同样的问题,不仅在 iphone 上,而且我已经通过转义字符串解决了(至少对于 Android):

    <button class="phoneCallButton">click me and call an hash number</button>
    
    $(document).ready(function(){ 
    
    
      $(".phoneCallButton").click( function()
               {
    
                 window.location = 'tel:'+escape("*123#");
               }
        );
    });
    

    【讨论】:

    • iphone 不允许再发送 # 了:/
    猜你喜欢
    • 2012-03-17
    • 1970-01-01
    • 1970-01-01
    • 2018-06-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-17
    • 1970-01-01
    相关资源
    最近更新 更多