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/protocol/index.html | 61 ++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 files/ko/web/api/url/protocol/index.html (limited to 'files/ko/web/api/url/protocol/index.html') diff --git a/files/ko/web/api/url/protocol/index.html b/files/ko/web/api/url/protocol/index.html new file mode 100644 index 0000000000..2d96b9eeec --- /dev/null +++ b/files/ko/web/api/url/protocol/index.html @@ -0,0 +1,61 @@ +--- +title: URL.protocol +slug: Web/API/URL/protocol +tags: + - API + - Property + - Reference + - URL + - URL API +translation_of: Web/API/URL/protocol +--- +
{{ApiRef("URL API")}}
+ +

{{domxref("URL")}} 인터페이스의 protocol 속성은 URL의 프로토콜 스킴과 마지막 ':'을 포함한 {{domxref("USVString")}}입니다.

+ +

{{AvailableInWorkers}}

+ +

구문

+ +
const protocol = url.protocol
+url.protocol = newProtocol
+
+ +

+ +

{{domxref("USVString")}}.

+ +

예제

+ +
const url = new URL('https://developer.mozilla.org/en-US/docs/Web/API/URL/protocol');
+console.log(url.protocol); // Logs "https:"
+
+ +

명세

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

브라우저 호환성

+ + + +

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

+ +

같이 보기

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