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
- jsp
- 상속
- 다형성
- jQuery
- list
- spring
- html
- 파일 입출력
- 연락처 프로그램
- css
- kotlin #return #jump
- GUI
- 오라클
- Java
- Method
- array
- Event
- 연산자
- property
- File 클래스
- function
- 데이터베이스
- 설치
- 코틀린#클래스#상속
- javaservlet
- 자바
- 윈도우 #단축키
- springframework
- String
- JavaScript
Archives
- Today
- Total
목록Prototype (1)
Binary World
- 생성자 함수의 프로토 타입을 변경할 수 있음 12345678910111213141516171819202122232425262728293031323334353637JavaScript생성자 함수 prototype 변경 var output = document.getElementById('output'); // 생성자 함수function Unit(name, money){ this.name = name; this.money = money;} // 생성자 함수의 proto type을 변경:Unit.prototype.gas = 0;Unit.prototype.attack = function() { output.innerHTML += this.name + '가 공격합니다!!'}; var unit1 = new Unit..
개발자의 길/Javascript
2017. 4. 6. 11:21