본문 바로가기

IT/Spring + iBatis

[Javascript] event 객체의 속성값들



찍어봤다.



type : click
timeStamp : 1400124594860
jQuery111105073443865403533 : true
isTrigger : 3
namespace : 
namespace_re : null
result : undefined
target : http://localhost:8081/WebAd2ProjectTest/subject/subjectList.do
delegateTarget : http://localhost:8081/WebAd2ProjectTest/subject/subjectList.do
currentTarget : http://localhost:8081/WebAd2ProjectTest/subject/subjectList.do
handleObj : [object Object]
data : null
isDefaultPrevented : function returnFalse() {
	return false;
}
isPropagationStopped : function returnFalse() {
	return false;
}
isImmediatePropagationStopped : function returnFalse() {
	return false;
}
preventDefault : function () {
		var e = this.originalEvent;

		this.isDefaultPrevented = returnTrue;
		if ( !e ) {
			return;
		}

		// If preventDefault exists, run it on the original event
		if ( e.preventDefault ) {
			e.preventDefault();

		// Support: IE
		// Otherwise set the returnValue property of the original event to false
		} else {
			e.returnValue = false;
		}
	}
stopPropagation : function () {
		var e = this.originalEvent;

		this.isPropagationStopped = returnTrue;
		if ( !e ) {
			return;
		}
		// If stopPropagation exists, run it on the original event
		if ( e.stopPropagation ) {
			e.stopPropagation();
		}

		// Support: IE
		// Set the cancelBubble property of the original event to true
		e.cancelBubble = true;
	}
stopImmediatePropagation : function () {
		var e = this.originalEvent;

		this.isImmediatePropagationStopped = returnTrue;

		if ( e && e.stopImmediatePropagation ) {
			e.stopImmediatePropagation();
		}

		this.stopPropagation();
	}


각 값들에 대한 자세한 공부는 나중에 -_- 시험이 먼저다!