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
- 인공지능
- Pattern
- git
- Numpy
- javascript
- SSH
- ai
- error
- Python
- Linux
- Web
- DeepLearning
- mariaDB
- 자바
- interface
- 함수
- Security
- mysql
- Deep
- Analysis
- java
- framework
- db
- LIST
- data
- learning
- Github
- Spring
- Server
- centos
Archives
- Today
- Total
목록Prototype (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