这是 实验性技术
检查 浏览器兼容性表格 要小心谨慎在生产中使用这之前。

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

元数据 interface is used by the File and Directory Entries API to contain information about a file system entry. This metadata includes the file's size and modification date and time.

This interface isn't available through the global scope; instead, you obtain a 元数据 object describing a FileSystemEntry using the method FileSystemEntry.getMetadata() .

特性

modificationTime 只读
日期 object indicating the date and time the entry was modified.
size 只读

A 64-bit unsigned integer indicating the size of the entry in bytes.

规范

规范 状态 注释
文件和目录条目 API 草案 提议 API 草案

此 API 没有正式的 W3C 或 WHATWG (Web 超文本应用程序技术工作组) 规范。

浏览器兼容性

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
元数据 非标 Chrome 13 Prefixed
13 Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge ≤79 Prefixed
≤79 Prefixed
Prefixed Implemented with the vendor prefix: webkit
Firefox 不支持 No IE 不支持 No Opera 不支持 No Safari 不支持 No WebView Android 不支持 No Chrome Android Yes Prefixed
Yes Prefixed
Prefixed Implemented with the vendor prefix: webkit
Firefox Android 不支持 No Opera Android 不支持 No Safari iOS 不支持 No Samsung Internet Android Yes Prefixed
Yes Prefixed
Prefixed Implemented with the vendor prefix: webkit
modificationTime 非标 Chrome 13 Edge ≤79 Firefox 不支持 No IE 不支持 No Opera 不支持 No Safari 不支持 No WebView Android 不支持 No Chrome Android Yes Firefox Android 不支持 No Opera Android 不支持 No Safari iOS 不支持 No Samsung Internet Android Yes
size 非标 Chrome 13 Edge ≤79 Firefox 不支持 No IE 不支持 No Opera 不支持 No Safari 不支持 No WebView Android 不支持 No Chrome Android Yes Firefox Android 不支持 No Opera Android 不支持 No Safari iOS 不支持 No Samsung Internet Android Yes

图例

完整支持

完整支持

不支持

不支持

实验。期望将来行为有所改变。

实验。期望将来行为有所改变。

非标。预期跨浏览器支持较差。

要求使用供应商前缀或不同名称。

要求使用供应商前缀或不同名称。

另请参阅

元数据

  • 最后修改: