这是 实验性技术
检查 浏览器兼容性表格 要小心谨慎在生产中使用这之前。

名称 特性为 Credential interface returns a DOMString , containing the name associated with a credential. It should be a human-readable, public name.

句法

var credName = Credential.name;
					

A DOMString containing the credential's given name.

范例

// TBD
					

规范

规范 状态 注释
Credential Management Level 1 工作草案 初始定义。

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
名称 (from CredentialUserData mixin) Chrome 51 — 52
不支持 51 — 52
Bug 602980 .
Edge ? Firefox No IE ? Opera ? Safari ? WebView Android 51 — 52
不支持 51 — 52
Bug 602980 .
Chrome Android 51 — 52
不支持 51 — 52
Bug 602980 .
Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 5.0 — 6.0
不支持 5.0 — 6.0
Bug 602980 .

图例

不支持

不支持

兼容性未知 ?

兼容性未知

实验。期望将来行为有所改变。

实验。期望将来行为有所改变。

见实现注意事项。

元数据

  • 最后修改:
  1. Credential
  2. 特性
    1. id
    2. 名称
    3. type

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1