[JavaScript]return false;和e.preventDefault();的区别

function() {
  return false;
}

// IS EQUAL TO

function(e) {
  e.preventDefault();
  e.stopPropagation();
}

参考:

1.The difference between ‘return false;’ and ‘e.preventDefault();’

2.Event order

posted @ 2010-07-10 13:39  Justin  阅读(1599)  评论(2编辑  收藏  举报