gpt4 book ai didi

Javascript:检测设备是否可以调用电话

转载 作者:行者123 更新时间:2023-12-02 05:17:16 25 4
gpt4 key购买 nike

<分区>

是否可以检测设备是否可以调用电话?我有一个包含电话号码列表的网页。如果设备可以调用,我想让它们可以点击,使用 tel: 链接。当我在桌面浏览器中单击此类链接时,Firefox 报告:

The address wasn't understood

Firefox doesn't know how to open this address, because one of the following protocols (tel) isn't associated with any program or is not allowed in this context.

我知道 mobile device detection .这不是我想要的,因为大多数平板电脑都可以移动,但不能打电话。

问题

  • 是否可以检测设备是否可以使用 Javascript 或 HTML 调用电话,如果可以,如何检测?
  • 如果做不到,最好的处理方法是什么?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com