ULongRange dictionary is used to define a range of permitted integer values for a property, with either or both a maximum and minimum value specified. The ConstrainULongRange dictionary is based on this, augmenting it to support exact and ideal values as well.

特性

max

A numeric value in the range of signed 32-bit integers, specifying the largest permissible value of the property it describes.

min

A numeric value in the range of signed 32-bit integers, specifying the smallest permissible value of the property it describes.

指定 min and/or and max 值为 required . If no match can be found that is within the given range, an error will occur.

规范

规范 状态 注释
媒体捕获和流
The definition of 'ULongRange' 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
ULongRange Chrome No Edge No Firefox No IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android No Opera Android No Safari iOS No Samsung Internet Android No

图例

不支持

不支持

另请参阅

元数据

  • 最后修改: