ULongRange

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.

The specified min and/or and max values are required . If no match can be found that is within the given range, an error will occur.

规范

规范 状态 Comment
媒体捕获和流
The definition of 'ULongRange' in that specification.
候选推荐 初始定义

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
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

图例

不支持
不支持

另请参阅