Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要用户确认她/他真的想离开并且他们的数据没有保存。onbeforeunload 非常适合这种情况,但我刚刚发现它不支持移动 safari。是否可以在 iPhone/iPad 上以任何其他方式达到相同的效果?