XML DOM cancelable ʼþÊôÐÔ

¶¨ÒåºÍÓ÷¨

cancelable ʼþ·µ»ØÒ»¸ö²¼¶ûÖµ¡£Èç¹ûÓà preventDefault() ·½·¨¿ÉÒÔÈ¡ÏûÓëʼþ¹ØÁªµÄĬÈ϶¯×÷£¬ÔòΪ true£¬·ñÔòΪ fasle¡£

Óï·¨

event.cancelable

ʵÀý

ÏÂÃæµÄÀý×Ó½²¼ì²â·¢ÉúµÄʼþÊÇ·ñÊÇÒ»¸ö cancelable ʼþ£º

<html>
<head>

<script type="text/javascript">
function isEventCancelable(event)
  { 
  alert(event.cancelable);
  }
</script>
</head>

<body onmousedown="isEventCancelable(event)">
	
<p>Click somewhere in the document. 
An alert box will tell if the 
event is a cancelable event.</p>

</body>
</html>

TIY

cancelable event
¼ì²âʼþÊÇ·ñÊÇ cancelable ʼþ£¨IE ä¯ÀÀÆ÷²»Ö§³Ö£©¡£
VUE