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
- 카멜룰
- unmashalling
- javascripts
- 유용한 코드
- 유용한 표현
- BiffException
- XMLAGG
- camel rule
- JExcel
- plan_table
- put
- svn ignore
- arguements
- New Project
- spring boot
- TypeReference
- WM_CONCAT
- Jackson
- window7
- eclipse pliugin
- 로우병합
- Marshalling
- filed
- 초기데이터
- 유용한사용법
- 호출
- json
- 인수배열
- mput
- 구동하기
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