var url= "http://10.10.20.105:28080/kpi/basPerf/export?type=1" //URL根据自己项目中实际情况而定 var down = document.createElement('a'); down.href = url; // document.body.appendChild(down); //此步骤可省略 down.click(); down.remove(); //此步骤可省略