非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。

DOMMatrixReadOnly 构造函数创建新 DOMMatrixReadOnly object which represents 4x4 matrices, suitable for 2D and 3D operations.

句法

var domMatrixReadOnly = new DOMMatrixReadOnly([init])
					

参数

init 可选

Either a string containing a sequence of numbers or an array of integers specifying the matrix you want to create.

规范

规范 状态 注释
Geometry Interfaces Module Level 1
The definition of 'DOMMatrixReadOnly' in that specification.
候选推荐 初始定义。

浏览器兼容性

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
DOMMatrixReadOnly() 构造函数 Chrome 57 Edge 79 Firefox 33 IE No Opera 44 Safari 11 WebView Android 61 Chrome Android 57 Firefox Android 33 Opera Android 45 Safari iOS 11.3 Samsung Internet Android 8.0

图例

完整支持

完整支持

不支持

不支持

元数据

  • 最后修改:
  1. DOMMatrixReadOnly
  2. 构造函数
    1. DOMMatrixReadOnly()
  3. 方法
    1. flipX()
    2. scale()
    3. translate()
  4. Related pages for Geometry Interfaces
    1. CSSMatrix
    2. DOMMatrix