자바스크립트 객체지향 (OOP)
[출처] 자바스크립트 객체지향 (OOP)|작성자 롤링 JSON (객체표기법(JavaScript Object Notation) 방식 <script type=”text/javascript” language=”javascript”> Book = { title : “sample” , chapter : { title : “title01” , page : “24” }, chapter2 : { title : “title02” , page : “50” } } Book.chapter.title = “change_title”; alert(Book.chapter.title); </script> 프로토타입(Prototype) 방식 <script type=”text/javascript” language=”javascript”> function… Read More »