var p =params.join("&"); var a = document.createElement(‘a‘); a.href = ‘report/exportpubcount.do‘+p; a.target = ‘_blank‘; a.id=‘exppub‘; document.body.appendChild(a); var alink = document.getElementById(‘exppub‘); alink.click(); alink.parentNode.removeChild(a);
原文:http://www.cnblogs.com/zhaofeng555/p/3799545.html