From 86792571ae1a21a1e4bf526747d6dd1c2636d167 Mon Sep 17 00:00:00 2001 From: alattalatta Date: Sat, 14 Aug 2021 15:57:42 +0900 Subject: Clean up JS reference documents (#1818) * Clean up JavaScript references HTML code - Remove inline styles - Remove elements - Remove title attribute * Remove sup/sub from JavaScript reference * Remove name attrs from JavaScript reference * Remove legacy browser compat elements * Remove duplicate browser-compat key --- .../web/javascript/reference/global_objects/function/apply/index.html | 4 ++-- .../web/javascript/reference/global_objects/function/bind/index.html | 4 ++-- files/ko/web/javascript/reference/global_objects/function/index.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'files/ko/web/javascript/reference/global_objects/function') diff --git a/files/ko/web/javascript/reference/global_objects/function/apply/index.html b/files/ko/web/javascript/reference/global_objects/function/apply/index.html index 2c437e1f24..8232d9444e 100644 --- a/files/ko/web/javascript/reference/global_objects/function/apply/index.html +++ b/files/ko/web/javascript/reference/global_objects/function/apply/index.html @@ -35,7 +35,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/apply

지정한 this 값과 인수들로 호출한 함수의 결과.

-

설명

+

설명

이미 존재하는 함수를 호출할 때 다른 this 객체를 할당할 수 있습니다. this 는 현재 객체, 호출하는 객체를 참조합니다. apply 를 사용해, 새로운 객체마다 메소드를 재작성할 필요없이 한 번만 작성해 다른 객체에 상속시킬 수 있습니다.

@@ -51,7 +51,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/apply
Chrome 14와 Internet Explorer 9를 포함한 대부분의 브라우저는 아직 유사배열객체를 apply에 사용할 수 없으며 오류가 출력됩니다.
-

예제

+

예제

배열에 배열을 붙이기 위해 apply 사용하기

diff --git a/files/ko/web/javascript/reference/global_objects/function/bind/index.html b/files/ko/web/javascript/reference/global_objects/function/bind/index.html index d4d0b79681..c55cda7bc5 100644 --- a/files/ko/web/javascript/reference/global_objects/function/bind/index.html +++ b/files/ko/web/javascript/reference/global_objects/function/bind/index.html @@ -25,7 +25,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/bind
thisArg
-
바인딩 함수가 대상 함수(target function)의 this에 전달하는 값입니다. 바인딩 함수를 {{jsxref("Operators/new", "new")}} 연산자로 생성한 경우 무시됩니다. bind를 사용하여 setTimeout 내에 콜백 함수를 만들 때, thisArg로 전달된 원시 값은 객체로 변환됩니다. bind할 인수(argument)가 제공되지 않으면  실행 스코프 내의 this는 새로운 함수의 thisArg로 처리됩니다.
+
바인딩 함수가 대상 함수(target function)의 this에 전달하는 값입니다. 바인딩 함수를 {{jsxref("Operators/new", "new")}} 연산자로 생성한 경우 무시됩니다. bind를 사용하여 setTimeout 내에 콜백 함수를 만들 때, thisArg로 전달된 원시 값은 객체로 변환됩니다. bind할 인수(argument)가 제공되지 않으면  실행 스코프 내의 this는 새로운 함수의 thisArg로 처리됩니다.
arg1, arg2, ...
대상 함수의 인수 앞에 사용될 인수.
@@ -36,7 +36,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/bind

설명

-

bind() 함수는 새로운 바인딩한 함수를 만듭니다. 바인딩한 함수는 원본 함수 객체를 감싸는 함수로, ECMAScript 2015에서 말하는 특이 함수 객체exotic function object입니다. 바인딩한 함수를 호출하면 일반적으로 래핑된 함수가 호출 됩니다.

+

bind() 함수는 새로운 바인딩한 함수를 만듭니다. 바인딩한 함수는 원본 함수 객체를 감싸는 함수로, ECMAScript 2015에서 말하는 특이 함수 객체(exotic function object)입니다. 바인딩한 함수를 호출하면 일반적으로 래핑된 함수가 호출 됩니다.

바인딩한 함수는 다음과 같은 내부 속성을 가지고 있습니다.

diff --git a/files/ko/web/javascript/reference/global_objects/function/index.html b/files/ko/web/javascript/reference/global_objects/function/index.html index 5d7dde941a..4eea5145e5 100644 --- a/files/ko/web/javascript/reference/global_objects/function/index.html +++ b/files/ko/web/javascript/reference/global_objects/function/index.html @@ -76,7 +76,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function
{{jsxref("Function.prototype.call()")}}
함수를 호출(실행)하고 this를 제공된 값으로 설정합니다, 인수는 그대로 전달될 수 있습니다.
{{jsxref("Function.prototype.isGenerator()")}} {{non-standard_inline}}
-
함수가 생성기인 경우 true를 반환합니다; 그렇지 않으면 false를 반환합니다.
+
함수가 생성기인 경우 true를 반환합니다; 그렇지 않으면 false를 반환합니다.
{{jsxref("Function.prototype.toSource()")}} {{non-standard_inline}}
함수의 소스 코드를 나타내는 문자열을 반환합니다. {{jsxref("Object.prototype.toSource")}} 메서드를 재정의(override)합니다.
{{jsxref("Function.prototype.toString()")}}
-- cgit v1.2.3-54-g00ecf