Skip to main content

第二十四周

2022-11-07 ~ 2022-11-13

Algorithm1

最大矩形

Algorithm2

验证二叉搜索树

Tips

每天 10 个前端小知识 Day3

复习面试题

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去阻止提交(阻止默认行为)