본문 바로가기
JavaScript

json data 설정 새로운방법/ key : value

by aesup 2021. 10. 5.
728x90
var test = []
test['0011'] = 'testdata';
console.log("test출력")
console.log(test)

저렇게 사용자가 key값 value 값을 지정하여 key는 좌측 값은 우측에 두어 설정할 수 있다.

728x90