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 |
Tags
- Android
- 공정능력
- NPM
- mapreduce
- mybatis
- Spring
- xPlatform
- table
- Express
- JavaScript
- GIT
- SQL
- Eclipse
- R
- Python
- react
- 보조정렬
- MSSQL
- tomcat
- es6
- Sqoop
- Java
- hadoop
- IntelliJ
- SSL
- window
- Kotlin
- plugin
- vaadin
- SPC
Archives
- Today
- Total
반응형
목록inheritance (1)
DBILITY
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/utmGY/btrjkh32pmQ/PnxfrewsSjWUizvAQEXGJK/img.png)
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
반응형