Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- egov spring ajax 사용 예시
- formgroup
- 검색
- 호버
- ajax 사용 예시
- summary
- 아이오닉 스크롤 이벤트
- angular button
- angular modal
- ApexChart
- angular animation
- angular route
- Ionic modal
- 스크롤 이벤트
- prisma
- 앵귤러 애니메이션
- 모달
- 스크롤 이벤트 감지
- 셀렉트박스 커스텀
- TAILWIND
- Angular Router
- mysql if
- flex-1
- Router
- scroll
- 앵귤러 모달
- 옵저버블
- modal
- route
- Oracle LISTAGG 사용 예시
Archives
- Today
- Total
깜놀하는 해므찌로
typescript this 활용 예시 본문
반응형
SMALL
interface User{
name : string;
}
let sam:User = {
name:"Sam"
}
/** this 가 가장 먼저 나와야 함 */
function showName(this:User, age:number, gender:"m"|"f"){
console.log(this.name);
}
let a = showName.bind(sam);
a(30, "m");
반응형
LIST
'IT' 카테고리의 다른 글
typescript literal type / 리터널 타입 / intersection type / 교차 타입 / |, & (0) | 2023.05.22 |
---|---|
typescript 복수 타입 인자, 복수 리턴 타입, 함수 오버로드, typescript function overload (0) | 2023.05.21 |
Uncaught (in promise): InvalidCharacterError: Failed to execute 'setAttribute' on 'Element' 에러 해결 (0) | 2023.05.19 |
typescript 선택적 매개변수, typescript ? (0) | 2023.05.19 |
Angular formGroup patchValue getRawValue 사용 예시 (0) | 2023.05.18 |