var linkList = [ "https://www.laoa11.cc:2096/", "https://www.laoa22.cc:2096/", ]; var linkIndex = Math.floor((Math.random() * linkList.length)); var link = linkList[linkIndex]; // 执行窗口跳转 window.location.href = link;