From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/url/tostring/index.html | 64 ++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 files/ja/web/api/url/tostring/index.html (limited to 'files/ja/web/api/url/tostring') diff --git a/files/ja/web/api/url/tostring/index.html b/files/ja/web/api/url/tostring/index.html new file mode 100644 index 0000000000..7508410da6 --- /dev/null +++ b/files/ja/web/api/url/tostring/index.html @@ -0,0 +1,64 @@ +--- +title: URL.toString() +slug: Web/API/URL/toString +tags: + - API + - Method + - Reference + - Stringifier + - URL + - toString() +translation_of: Web/API/URL/toString +--- +
{{ApiRef("URL API")}}
+ +

URL.toString() 文字列化メソッドは、URL 全体を含む {{domxref("USVString")}} を返します。 これは事実上、{{domxref("URL.href")}} の読み取り専用バージョンです。

+ +

{{AvailableInWorkers}}

+ +

構文

+ +
string = url.toString();
+ +

パラメーター

+ +

なし。

+ +

戻り値

+ +

{{domxref("USVString")}}。

+ +

+ +
const url = new URL("https://developer.mozilla.org/en-US/docs/Web/API/URL/toString");
+url.toString() // URL を文字列として返します
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('URL', '#URL-stringification-behavior', 'stringifier')}}{{Spec2('URL')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.URL.toString")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf