From 5e990a17012ff5ed90ae1559a11bbe4bc74c887a Mon Sep 17 00:00:00 2001 From: MDN Date: Tue, 8 Jun 2021 00:58:25 +0000 Subject: [CRON] sync translated content --- .../ko/orphaned/web/api/abstractworker/index.html | 84 ++++++++++++++++++++++ .../web/api/element/currentstyle/index.html | 33 +++++++++ 2 files changed, 117 insertions(+) create mode 100644 files/ko/orphaned/web/api/abstractworker/index.html create mode 100644 files/ko/orphaned/web/api/element/currentstyle/index.html (limited to 'files/ko/orphaned/web') diff --git a/files/ko/orphaned/web/api/abstractworker/index.html b/files/ko/orphaned/web/api/abstractworker/index.html new file mode 100644 index 0000000000..a0a80f641c --- /dev/null +++ b/files/ko/orphaned/web/api/abstractworker/index.html @@ -0,0 +1,84 @@ +--- +title: AbstractWorker +slug: orphaned/Web/API/AbstractWorker +tags: + - API + - Abstract + - AbstractWorker + - Interface + - Reference + - Web Workers + - Web Workers API + - Worker + - 워커 + - 웹 워커 +translation_of: Web/API/AbstractWorker +original_slug: Web/API/AbstractWorker +--- +
{{ APIRef("Web Workers API") }}
+ +

Web Workers APIAbstractWorker 인터페이스는 기본적인 {{domxref("Worker")}}에 더해 {{domxref("ServiceWorker")}}와 {{domxref("SharedWorker")}}까지, 모든 유형의 워커에 공통된 속성과 메서드를 정의하는 추상 인터페이스입니다.

+ +

속성

+ +

AbstractWorker 인터페이스는 어떠한 속성도 상속하지 않습니다.

+ +

이벤트 처리기

+ +
+
{{domxref("AbstractWorker.onerror")}}
+
error 유형의 {{domxref("ErrorEvent")}}가 워커로 확산되면 호출할 {{domxref("EventListener")}}입니다.
+
+ +

메서드

+ +

AbstractWorker 인터페이스는 어떠한 메서드도 구현하거나 상속하지 않습니다.

+ +

예제

+ +

AbstractWorker는 추상 인터페이스므로 코드 내에서 직접 사용할 일은 없습니다. 대신, AbstractWorker를 상속하는 {{domxref("Worker")}} 또는 {{domxref("SharedWorker")}}를 사용할 것입니다.

+ +

다음 코드는 {{domxref("Worker.Worker", "Worker()")}} 생성자를 사용해 새로운 Worker를 생성한 후 워커로 메시지를 전송하는 것을 보입니다.

+ +
var myWorker = new Worker('worker.js');
+
+first.onchange = function() {
+  myWorker.postMessage([first.value, second.value]);
+  console.log('Message posted to worker');
+}
+ +

위 워커의 코드는 "worker.js" 파일에서 불러오며, first로 표현한 {{htmlelement("input")}} 요소가 존재하는 상황을 가정하여, {{event("change")}} 이벤트 처리기를 부착해 사용자가 first의 값을 바꿀 때마다 워커에 메시지를 전송해 바뀐 값을 알려줍니다.

+ +

MDN 웹 문서 GitHub 저장소에 더 많은 예제가 준비돼있습니다.

+ + + +

명세

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("HTML WHATWG", "#abstractworker", "AbstractWorker")}}{{Spec2('HTML WHATWG')}}No change from {{SpecName("Web Workers")}}.
+ +

브라우저 호환성

+ +
{{Compat("api.AbstractWorker")}}
+ +

같이 보기

+ + diff --git a/files/ko/orphaned/web/api/element/currentstyle/index.html b/files/ko/orphaned/web/api/element/currentstyle/index.html new file mode 100644 index 0000000000..04b0adabcc --- /dev/null +++ b/files/ko/orphaned/web/api/element/currentstyle/index.html @@ -0,0 +1,33 @@ +--- +title: Element.currentStyle +slug: orphaned/Web/API/Element/currentStyle +tags: + - 돔 + - 속성 추출 + - 요소 속성 +translation_of: Web/API/Element/currentStyle +original_slug: Web/API/Element/currentStyle +--- +
{{APIRef("DOM")}}
+ +

{{ Non-standard_header() }}

+ +

Summary

+ +

Element.currentStyle 은 표준화된 {{domxref("window.getComputedStyle")}} 메서드의 인터넷 익스플로러 전용 대체 프로퍼티입니다. 오래된 버젼의 인터넷 익스플로러에서 사용 가능합니다.

+ +

Specification

+ +

명세에 포함 되는 부분이 아닙니다.

+ +

마이크로소프트 MSDN에 설명이 있습니다.

+ +

Browser compatibility

+ +

{{Compat("api.Element.currentStyle")}}

+ +

See also

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