Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- es6
- Android
- 공정능력
- GIT
- Java
- mybatis
- hadoop
- R
- Kotlin
- Spring
- NPM
- SQL
- tomcat
- IntelliJ
- plugin
- Express
- JavaScript
- SSL
- mapreduce
- Python
- xPlatform
- 보조정렬
- Sqoop
- MSSQL
- react
- vaadin
- table
- window
- SPC
- Eclipse
Archives
- Today
- Total
반응형
목록상속 (1)
DBILITY

ES5에서는 Object.create()를 통해 가능하다고 한다. function log(...args) { args.forEach(function (v, i) { console.log(v); }) } var parent = { name: '부모', age: 5000 }; var child = Object.create(parent); var grandChild = Object.create(child); log(child); child.name = '자식'; child.age = 10; log(child); grandChild.name = '손자'; grandChild.age = 2; log(grandChild, grandChild.name); log(grandChild.__proto__);
front-end & ui/javascript
2021. 10. 29. 19:04
반응형