javascript-tutorial / javascript-tutorial/zh.javascript.info
onbeforeunload章节中已过时的警告提示信息
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
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