1
2
3
4
5
6
7
8
9
10
|
function
() {
return
false
;
}
// IS EQUAL TO
function
(e) {
e.preventDefault();
e.stopPropagation();
}
|
参考:
1.The difference between ‘return false;’ and ‘e.preventDefault();’
本文转自Justin博客园博客,原文链接:http://www.cnblogs.com/justinw/,如需转载请自行联系原作者