Navigator:ink 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

io error: No such file or directory (os error 2) (/home/runner/work/yari/yari/mdn/translated-content/files/zh-cn/web/api/ink_api/index.md)

Navigator 接口的 ink 只读属性为当前文档返回一个 Ink 对象,提供对 Ink API 功能的访问。

一个 Ink 对象。

示例

js
async function inkInit() {
  const ink = navigator.ink;
  let presenter = await ink.requestPresenter({ presentationArea: canvas });

  //...
}

规范

Specification
Ink API
# navigator-interface-extensions

浏览器兼容性

BCD tables only load in the browser

参见