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
- centos
- Web
- Github
- Server
- framework
- interface
- Deep
- error
- Linux
- DeepLearning
- learning
- mariaDB
- ai
- 함수
- data
- db
- Numpy
- Analysis
- javascript
- mysql
- Spring
- 인공지능
- 자바
- Pattern
- SSH
- Python
- Security
- git
- java
- LIST
Archives
- Today
- Total
목록상속 (1)
PostIT
[Javascript/Object] 자바스크립트에서의 상속 - Object.create()에 설명
Object.create(); Object.create = function(o){function F(){}F.prototype = o;return new F();} 익스플로러 9버전 이후부터 지원 new 키워드를 사용할 떄와는 달리 전체적으로 소스의 생성자의 개념이 약해지고, 객체의 인스턴스 간의 상속을 강조하는 것. var person = {yell : function (){alert(“My Name is “ + this.name);}}; var example = Object.create(person);example.name=“Hooney”;example.yell(); // ===“My Name is Hooney” console.log(example instances person); // ===Type..
Script/JavaScript
2017. 2. 14. 13:03