diff options
| author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
|---|---|---|
| committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
| commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
| tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/url/port | |
| parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
| download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip | |
initial commit
Diffstat (limited to 'files/ja/web/api/url/port')
| -rw-r--r-- | files/ja/web/api/url/port/index.html | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/files/ja/web/api/url/port/index.html b/files/ja/web/api/url/port/index.html new file mode 100644 index 0000000000..470cea03af --- /dev/null +++ b/files/ja/web/api/url/port/index.html @@ -0,0 +1,61 @@ +--- +title: URL.port +slug: Web/API/URL/port +tags: + - API + - Property + - Reference + - URL + - port +translation_of: Web/API/URL/port +--- +<div>{{ApiRef("URL API")}}</div> + +<p><span class="seoSummary">{{domxref("URL")}} インターフェイスの <strong><code>port</code></strong> プロパティは、URL のポート番号を含む {{domxref("USVString")}} です。 URL に明示的なポート番号が含まれていない場合は、<code>''</code> に設定されます。</span></p> + +<p>{{AvailableInWorkers}}</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox"><em>string</em> = <em>object</em>.port; +<em>object</em>.port = <em>string</em>; +</pre> + +<h3 id="Value" name="Value">値</h3> + +<p>{{domxref("USVString")}}。</p> + +<h2 id="Examples" name="Examples">例</h2> + +<pre class="brush: js">var url = new URL('<span class="message-body-wrapper"><span class="message-flex-body"><span class="devtools-monospace message-body"><span class="cm-string">https://mydomain.com:80/svn/Repos/</span></span></span></span>'); +var result = url.port; // 戻り値: '80' +</pre> + +<h2 id="Specifications" name="Specifications">仕様</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">仕様</th> + <th scope="col">状態</th> + <th scope="col">コメント</th> + </tr> + <tr> + <td>{{SpecName('URL', '#dom-url-port', 'URL.port')}}</td> + <td>{{Spec2('URL')}}</td> + <td>初期定義</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> + + + +<p>{{Compat("api.URL.port")}}</p> + +<h2 id="See_also" name="See_also">関連情報</h2> + +<ul> + <li>{{domxref("URL")}} インターフェイスに属します。</li> +</ul> |
