使用window.open方法打开新的页面 window.location.href = https://www.cnblogs.com/lljun/;//这个是在当前页面打开新页面并刷新页面 window.open(https://www.cnblogs.com/);//这个是打开新的页面==a标签中的target="_blank"