<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <!-- 引入jQuery --> <script src="jq.js"></script> </head> <body> <!-- 刷新按钮 --> <button id="btn1">刷新</button> <script> $('#btn1').click(function(){ // 刷新页面 方法1: window.location.reload(); // 刷新页面 方法2: location.reload(); }); </script> </body> </html>
标签:jQuery,JS,reload,location,刷新,页面 From: https://www.cnblogs.com/zhangyh-blog/p/17405445.html