javascript-tutorial / javascript-tutorial/zh.javascript.info
onbeforeunload章节中已过时的警告提示信息
- Dominant language
- HTML
- Stars
- 10.8k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
位置:
https://zh.javascript.info/onload-ondomcontentloaded#window.onbeforeunload
`event.preventDefault() 在 beforeunload 处理程序中不起作用` 这一部分的警告提示信息已过时
经测试,`event.preventDefault()`是正常起作用的,查看了下俄文原版教程,这一段内容也已经删除了
测试环境:
Chromium Engine Version 127.0.6533.89
Safari 版本17.5 (19618.2.12.11.6)
建议:
同步删除该部分内容
Contributor guide
No contributing guide indexed for this repository
Research direction
Open the linked onload-ondomcontentloaded page at the window.onbeforeunload section and compare it with the Russian tutorial. Remove the outdated warning that says event.preventDefault() does not work, then check the surrounding Chinese text to ensure the section remains coherent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100