Window:trustedTypes 属性

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/trusted_types_api/index.md)

Window 接口的 trustedTypes 只读属性返回与全局对象关联的 TrustedTypePolicyFactory 对象,为使用可信类型 API 提供入口点。

一个 TrustedTypePolicyFactory 对象。

规范

Specification
Trusted Types
# extensions-to-the-windoworworkerglobalscope-interface

浏览器兼容性

BCD tables only load in the browser