window.open(“url”); 表示在新的窗口打开这个页面,并不是打开并刷新url window.location.href=“url”; 表示重新定向到当前页面(在当前页面打开),同时刷新打开的这个页面;