方法一
window.location.href="http://www.pgres.cn"; //在当前窗口中打开
方法二
window.open("http://www.pgres.cn"); //在新窗口中打开