여긴 또 무엇인가

  • 홈
  • 태그

TypeScript 1

[Typescript] class to json

Typescript에서 class를 json 문자열로 바꾸는 방법에 대한 고민. 일단 평범?하게.. 별 문제없이 성공 class MyTest { first = 1; second = "It's my test!"; third: string[] = ["Hello", "World"]; } console.log(JSON.stringify(new MyTest()));​ 이렇게 하니까 무한루프를 탄다. class MyTest { first = 1; second = "It's my test!"; third: string[] = ["Hello", "World"]; toJSON(): string { return JSON.stringify(this); } } const o = new MyTest(); console.log(..

Javascript 2023.03.02
이전
1
다음
더보기
프로필사진

여긴 또 무엇인가

한 게으름뱅이 개발자의 내키는대로 쓰는 이야기들

  • 분류 전체보기
    • Java
    • PHP
    • Javascript
    • Python
    • SQL
    • Linux
    • Sublime Text
    • 개발자 일상
    • 정리

Tag

PBKDF1, derivation function, 자바, 이클립스, Eclipse, c#, 윈도우, Web, 개발, 파이썬, System.Security.Cryptography.PasswordDeriveBytes, 설치, docker, Mac, PKCS#5, RFC 2898, java, 웹, 윈도, 프로그래밍,

Copyright © AXZ Corp. All rights reserved.

티스토리툴바