| 컨트롤러에서 HashMap으로 받은 내용을 Javascript에서 key, value로 출력하는 방법 //checkedList는 Controller에서 HashMap으로 전달받은 데이터이다. var checkedList = data.checkedList; Object.keys(checkedList).forEach(key => { var mKey = key; // key var mValue = checkedList[key]; // value console.log('key -- ' , key); // 7210000591-4010017668-MSG console.log('value -- ', checkedList[key]); //var mKey = key + "-MSG"; //var mValue = che..
1. Property value shorthand / Constructor function // 3. Property value shorthand const person1 = {name : 'aa', age : 2}; const person2 = new Person('bb',11); console.log(person1); // {name: "aa", age: 2} console.log(person2); // Person {name: "bb", age: 11} // 4. Constructor function function Person(name, age) { this.name = name; this.age = age; } 2. key 값이 있는지 체크 (in operator: property existen..