问题是,当我使用停止传播并使用 Ctrl 键单击链接时,为什么 firefox (3-10) 不调用默认链接处理程序?所有其他浏览器,甚至包括 IE!,都会这样做。
代码示例:
<a href="http://google.com">Click me</a>
<script type="text/javascript">
$('a').click(function(evt){
evt.stopPropagation();
});
</script>
只需打开 Firefox,按住 Ctrl 键并单击链接。什么都没发生,为什么?