第二十四周
2022-11-07 ~ 2022-11-13
Algorithm1
Algorithm2
Tips
复习面试题
Review
When and why to ‘return false’ in JavaScript?
这篇帖子介绍了如何去使用return false
其中关于这一句有一个要注意的地方:
During form submission, if a particular entry is unfilled, return false is used to prevent the submission of the form.
这里特指的是 input:button 的,而 button:submit 则不支持通过return false
去阻止提交(阻止默认行为)