下面的JS代码可以重新加载当前页面
<!DOCTYPE html> <html> <head> <script> function reloadPage() { location.reload() } </script> </head> <body> <input type="button" value="Reload page" onclick="reloadPage()"> </body> </html>
下面的JS代码可以重新加载当前页面
<!DOCTYPE html> <html> <head> <script> function reloadPage() { location.reload() } </script> </head> <body> <input type="button" value="Reload page" onclick="reloadPage()"> </body> </html>