--- title: ProgressEvent.lengthComputable slug: Web/API/ProgressEvent/lengthComputable translation_of: Web/API/ProgressEvent/lengthComputable ---
{{APIRef("DOM Events")}}
ProgressEvent.lengthComputable
只读属性是一个布尔{{domxref("Boolean")}} 标志,表示{{domxref("ProgressEvent")}} 所关联的资源是否具有可以计算的长度。否则 ,{{domxref("ProgressEvent.total")}} 属性将是一个无意义的值。
flag = ProgressEvent.lengthComputable
规范 | 状态 | 备注 |
---|---|---|
{{SpecName('XMLHttpRequest', '#dom-progressevent-lengthcomputable', 'ProgressEvent.lengthComputable')}} | {{Spec2('XMLHttpRequest')}} |
{{CompatibilityTable}}
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatVersionUnknown}} | {{CompatGeckoDesktop("1.9.1")}} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatVersionUnknown}} | {{CompatGeckoMobile("1.9.1")}} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |