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 | 31 |
Tags
- GIT
- Spring
- Express
- react
- mybatis
- vaadin
- Kotlin
- NPM
- tomcat
- plugin
- Sqoop
- Eclipse
- IntelliJ
- MSSQL
- SQL
- window
- Android
- hadoop
- xPlatform
- R
- Java
- SSL
- table
- mapreduce
- 보조정렬
- JavaScript
- Python
- es6
- SPC
- 공정능력
Archives
- Today
- Total
728x90
목록inheritance (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
728x90