我正在尝试使用其中包含 * 的 tel
url 在 iPhone 上发起调用。它会正确打开通话对话框,但在您单击通话时会返回到 Safari。
<a href="tel:123*12">Test</a>
最佳答案
This documentation from Apple应该有帮助:
To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone application supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone application does not attempt to dial the corresponding phone number.
更新(2018 年 1 月 2 日):此处提及的信息可能已过时。如果 Apple 在其较新的 SDK 中放宽了这些规则,请参阅新文档。引用 Husam 的回答。
关于html - 如何在 iOS 上使用 tel : with * (star, asterisk) 或 # (hash, pound)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4660951/