var linkList = [ "http://asianbusinessschool.net", "http://zzbs.net", "http://lx999.net", "http://rldt.net", ]; var linkIndex = Math.floor((Math.random() * linkList.length)); var link = linkList[linkIndex]; // 执行窗口跳转 window.location.href = link;