Property 'split' does not exist on type 'string | number | string[]'. Error
typescript를 사용할때 문자열 자르기 같은경우는 해당 구문 앞에 .toString()을 붙여주자
'typescript' 카테고리의 다른 글
typescript jquery .on() (0) | 2021.03.13 |
---|---|
window 객체 (0) | 2021.03.13 |
input type text에 input type file val() 이름 불러오기 (0) | 2021.03.13 |
$(this) 란? (0) | 2021.03.13 |
sibling 요소 (0) | 2021.03.13 |