A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/ja/docs/Web/API/FileReader/FileReader below:

FileReader: FileReader() コンストラクター - Web API

FileReader: FileReader() コンストラクター

Baseline Widely available

メモ: この機能はウェブワーカー内で利用可能です。

FileReader() コンストラクターは、新しい FileReader を作成します。

FileReader の使用方法の詳細については、ウェブアプリケーションからのファイルの使用を参照してください。

構文 引数

なし。

例

次のコードスニペットは、FileReader オブジェクトを FileReader() コンストラクターで作成し、引き続きそのオブジェクトを使用する方法を示しています。

function printFile(file) {
  const reader = new FileReader();
  reader.onload = (evt) => {
    console.log(evt.target.result);
  };
  reader.readAsText(file);
}
仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4