日期:2014-05-16 浏览次数:20416 次
<a id="haha" href="#" onclick="stopEvent(event)">阻止a标签事件向上冒泡</a>
function stopEvent(e) {
	//打开你的DIV的代码部分
	....
	//
	if (e.stopPropagation) {
		e.stopPropagation();
	} else {
		e.cancelBubble = true;
	}
	if (e.preventDefault) {
		e.preventDefault();
	} else {
		e.returnValue = false;
	}
}