日期:2014-05-16 浏览次数:20359 次
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<div onclick="alert('parentNode')">
<div class="delall">delall</div>
<div class="delallshow" style="display:none">delallshow</div>
</div>
<script>
$(function () {
$(".delall").click(function (event) {
$(this).hide();
$(".delallshow").show();
try {
event.stopPropagation();
window.event.cancelBubble = true;
} catch (e) {
}
});
});
</script>