number 的内容?-6ren"> number 的内容?-当我们使用 number or mailid 对于电话号码和电子邮件,执行类似 number 的操作传真存在吗? 最佳答案 是的,https://www.ietf.org/rfc/rfc2806 中讨-6ren">
gpt4 book ai didi

html - 是否存在类似 number 的内容?

转载 作者:技术小花猫 更新时间:2023-10-29 11:31:27 26 4
gpt4 key购买 nike

当我们使用

<a href="tel:number">number</a> or <a href="mailto:mailid">mailid</a>

对于电话号码和电子邮件,执行类似 <a href="fax:number">number</a> 的操作传真存在吗?

最佳答案

是的,https://www.ietf.org/rfc/rfc2806 中讨论了电话、传真和调制解调器 URL 方案

2.3“传真”URL方案

The URL syntax is formally described as follows (the definition reuses nonterminals from the above definition). For the basis of this syntax, see [RFC2303] and [RFC2304].

  fax-url          = fax-scheme ":" fax-subscriber
fax-scheme = "fax"
fax-subscriber = fax-global-phone / fax-local-phone
fax-global-phone = "+" base-phone-number [isdn-subaddress]
[t33-subaddress] [post-dial]
*(area-specifier / service-provider /
future-extension)
fax-local-phone = 1*(phonedigit / dtmf-digit /
pause-character) [isdn-subaddress]
[t33-subaddress] [post-dial]
area-specifier
*(area-specifier / service-provider /
future-extension)
t33-subaddress = ";tsub=" 1*phonedigit

The fax: URL is very similar to the tel: URL. The main difference is that in addition to ISDN subaddresses, telefaxes also have an another type of subaddress, see section 2.5.8.

示例:

<a href="fax:+358.555.1234567">+358.555.1234567</a>

但是,根据下面的评论,RFC 2806 was obsoleted by RFC 3966 and you should just use the tel URI scheme:

The "tel" URI does not specify the call type, such as voice, fax, or data call, and does not provide the connection parameters for a data call. The type and parameters are assumed to be negotiated either in-band by the telephone device or through a signaling protocol such as SIP. This document obsoletes RFC 2806.

RFC 3966 was updated by RFC 5341 形式化 URI 参数并要求它们是 registered with IANA 。为了完整起见,我将这些包括在这里。它们不包含有关传真设备的任何其他信息。

关于html - 是否存在类似 <a href ="fax:number">number</a> 的内容?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9443520/

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