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