File.fileName

非標準: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

gecko 7.0: 不推薦使用此功能。雖可能有一些瀏覽器仍然支援它,但也許已自相關的網頁標準中移除、正準備移除、或僅為了維持相容性而保留。避免使用此功能,盡可能更新現有程式;請參考頁面底部的相容性表格來下決定。請注意:本功能可能隨時停止運作。

總覽

回傳檔案名稱,基於安全因素,檔案路徑不包含這個屬性。

備註: 這個檔案是廢棄的,使用 File.name 取代。

語法

js
var name = instanceOfFile.fileName;

數值

字串

格式

尚無資料

看更多