aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/file/size
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/file/size
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/file/size')
-rw-r--r--files/zh-cn/web/api/file/size/index.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/file/size/index.html b/files/zh-cn/web/api/file/size/index.html
new file mode 100644
index 0000000000..5ab90e8018
--- /dev/null
+++ b/files/zh-cn/web/api/file/size/index.html
@@ -0,0 +1,30 @@
+---
+title: File.size
+slug: Web/API/File/size
+translation_of: Web/API/File/size
+---
+<p>{{APIRef("File API") }}</p>
+
+<h2 id="概述">概述</h2>
+
+<p><span class="short_text" id="result_box" lang="zh-CN"><span>以字节为单位返回文件的大小。</span></span></p>
+
+<h2 id="语法">语法</h2>
+
+<pre>var size = <em>instanceOfFile</em>.size</pre>
+
+<h2 id="值">值</h2>
+
+<p>一个数</p>
+
+<h2 id="规范"><span class="short_text" id="result_box" lang="zh-CN"><span>规范</span></span></h2>
+
+<p><span class="short_text" id="result_box" lang="zh-CN"><span>不属于任何规范。</span></span></p>
+
+<h2 id="另请参见"><span class="short_text" id="result_box" lang="zh-CN"><span class="alt-edited">另请参见</span></span></h2>
+
+<ul>
+ <li>{{domxref("Blob.size")}}</li>
+</ul>
+
+<p> </p>