From da78a9e329e272dedb2400b79a3bdeebff387d47 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:17 -0500 Subject: initial commit --- files/ko/web/api/url/port/index.html | 61 ++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 files/ko/web/api/url/port/index.html (limited to 'files/ko/web/api/url/port') diff --git a/files/ko/web/api/url/port/index.html b/files/ko/web/api/url/port/index.html new file mode 100644 index 0000000000..a461130387 --- /dev/null +++ b/files/ko/web/api/url/port/index.html @@ -0,0 +1,61 @@ +--- +title: URL.port +slug: Web/API/URL/port +tags: + - API + - Property + - Reference + - URL + - URL API +translation_of: Web/API/URL/port +--- +
{{ApiRef("URL API")}}
+ +

{{domxref("URL")}} 인터페이스의 port 속성은 URL의 포트 숫자를 담은 {{domxref("USVString")}}입니다. URL이 명시적인 포트 번호를 포함하고 있지 않으면 빈 문자열('')입니다.

+ +

{{AvailableInWorkers}}

+ +

구문

+ +
const portNumber = url.port
+url.port = newPortNumber
+
+ +

+ +

A {{domxref("USVString")}}.

+ +

예제

+ +
const url = new URL('https://mydomain.com:80/svn/Repos/');
+console.log(url.port); // Logs '80'
+
+ +

명세

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('URL', '#dom-url-port', 'URL.port')}}{{Spec2('URL')}}Initial definition.
+ +

브라우저 호환성

+ + + +

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

+ +

같이 보기

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