Home > front end >  window.location.reload(); Refresh the current page
window.location.reload(); Refresh the current page

Time:02-24

 function checkADDUser () {
Var t=true;
$(" # Huiform input ".) each (function (index, element) {
If ($. Trim ($(this). Val ())=="") {
$(this). The focus (); T=false;
Layer. MSG (' add failure, please fill out the complete. ')
return false;
}
The else {
//alert (' add success! ');
//parent. Location. Reload ();
//the window. The location. Reload ();
window.location.reload();
return false;
}
});
Return t;
}
});



Tried Windows. Location. Reload (); The parent. The location. Reload (); Can't break out the latest data

CodePudding user response:

If you have a refresh but no updates can consider to add a random parameters in the URL, use window.location.href=https://bbs.csdn.net/topics/xxxx

CodePudding user response:

The
Hello World, 1/f, reference response:
if you have a refresh but no updates can consider to add a random parameter in the URL, use window.location.href=https://bbs.csdn.net/topics/xxxx


Still won't do

CodePudding user response:

You below alert (" Xxx "), any response?

CodePudding user response:

The
reference 3 floor seven of the world, I'll take ninety-nine response:
you alert below (" Xxx "), any response?


some

CodePudding user response:

refer to the second floor of black hat reply:
Quote: Hello World, 1/f, reference response:
if you have a refresh but no updates can consider to add a random parameter in the URL, use window.location.href=https://bbs.csdn.net/topics/xxxx


Still won't do


How to write?

CodePudding user response:

black hat reference 4 floor response:
Quote: refer to the third floor of seven of the world, I'll take ninety-nine response:
you below alert (" Xxx "), any response?


Some


Your alert (" Xxx ") on the window. The location. Reload (); The back, look at the alert () can take effect

CodePudding user response:

What is you want to refresh, refresh the page, or clear the cache reloading the page,
Do you want to find the problem first,
Try to clear the browser cache, in open this page, see if you want,
If not, that is, the server update,

If it is the result you want, plus a window.location.href=https://bbs.csdn.net/topics/xxxx.com? S=timestamp
After convenient and clear the cache,

Will look at the console, look at the page status code
403: the cache problem,
200: the server did not update the

Not the page, also can see is the interface

CodePudding user response:

The reload from each pull out, through the if (t) reload,
  • Related