문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
| javascript:class [2019/02/28 17:18] – 만듦 taekgu | javascript:class [2025/04/15 10:05] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ===== class & this ===== | ===== class & this ===== | ||
| + | IFEF을 활용하여 class를 구현함. | ||
| + | ==== Class Source ==== | ||
| <code javascript> | <code javascript> | ||
| var MyCalendar = /** @class */ (function () { | var MyCalendar = /** @class */ (function () { | ||
| 줄 58: | 줄 60: | ||
| }); | }); | ||
| console.log(" | console.log(" | ||
| + | </ | ||
| + | === output === | ||
| + | < | ||
| + | ======== | ||
| + | isToday(): | ||
| + | isToday(): | ||
| + | forEach: | ||
| + | isCurWeek: | ||
| + | ++++++++ | ||
| + | isToday(): | ||
| + | isToday(): | ||
| + | forEach: | ||
| + | isCurWeek: | ||
| + | ++++++++ | ||
| + | -------- | ||
| + | isToday(): | ||
| + | isToday(): | ||
| + | forEach: | ||
| + | isCurWeek: | ||
| + | isToday(): | ||
| + | isToday(): | ||
| + | forEach: | ||
| + | isCurWeek: | ||
| + | ======== | ||
| </ | </ | ||