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
- javascripts
- WM_CONCAT
- 유용한 코드
- New Project
- spring boot
- eclipse pliugin
- TypeReference
- Marshalling
- BiffException
- unmashalling
- filed
- JExcel
- 로우병합
- 인수배열
- mput
- svn ignore
- camel rule
- 초기데이터
- 유용한 표현
- 카멜룰
- 유용한사용법
- window7
- json
- 호출
- XMLAGG
- put
- 구동하기
- plan_table
- arguements
- Jackson
Archives
- Today
- Total
하루에 한가지
[실험] 프로토 타입이 우선할까? 생성자가 우선할까? 본문
new Class1().swingSword() 의 결과는??
function Class1(){
this.swung = false;
this.swingSword = function(){
return !this.swung; // true?
}
}
Class1.prototype.swingSword = function(){
return this.swung; // false?
}
답) true
생성자에서 엎어친 메서드가 우선한다.
'javascripts' 카테고리의 다른 글
| javascript / Array / 정리 (0) | 2020.03.17 |
|---|
Comments