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.
ASP.NET 页面 - 如何停止按 F5 或后退按钮?请帮忙。JQuery, JS 只在少数浏览器上工作。请建议一些服务器端代码。谢谢。
没有服务器端代码可以防止按下后退按钮或 F5。JQuery/JS 可能与它所获得的一样好。
你不能那样做!客户可以自由地为所欲为。如果他们想向您的服务器发送任何请求 n 次,他们可以做到。如果他们想返回(发送他们之前发送的请求),他们可以这样做。就接受吧。
您对后退按钮/F5 有什么问题?