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