简体   繁体   English

在完全加载jquery之后重新加载页面一次

[英]Reload page once after it's fully loaded with jquery

I would like that page is reloaded ONLY once, with jquery, but only if on page is specific form with unique ID, is that possible even? 我希望这个页面只用jquery重新加载一次,但只有在页面上是具有唯一ID的特定表单时,这是否可能?

Thanks! 谢谢!

It can be done: 可以办到:

  1. Add a script to the $(document).ready to check for your form / "magic" ID 将脚本添加到$(document).ready以检查表单/“magic”ID
  2. If the condition is true check if document.referrer isn't yourself 如果条件为真,请检查document.referrer是否不是您自己
  3. If so, reload. 如果是这样,请重新加载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM