且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何刷新jQuery页面?

更新时间:2023-12-02 11:49:28

仅使用location.reload();-请注意,这不会禁用重新加载的缓存.但是,如果不使用缓存中的任何内容,就不能同时保留这两个表单字段.

Use only location.reload(); - note that this will not disable caching for the reload. But you cannot preserve both form fields and reload without using anything from cache.

它与F5和CTRL + F5非常相似:第一个不会禁用所有缓存,但会保留表单字段.后者不会从缓存中加载任何内容,并且会重置表单字段.

It's very similar to F5 vs CTRL+F5: The first one does not disable all caching but preserves form fields. The latter does not load anything from cache and resets form fields.