如何在移动浏览器自动拨号器中使用tel:123#填充'#'?
示例:
<a href='tel:123#'>Dial this number</a>
这只会在本地自动拨号器中填充“123”。有没有什么办法在拨号器中包含“#”?
我在 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#");
}
);
});