我找到了一种将 HTML 表导出到 Excel 的方法,但是在将 JavaScript 表导出从网站导出到 Excel 时遇到问题。请帮我找到一种方法,将此表导出到 Excel。
页面,我需要信息的地方:
www.jalgpall.ee/players.php?year=2012&team=84&player=28469&b=ML
本页javascript表函数示例:
JavaScript: function showPlayers() {
xmlhttp = GetXmlHttpObject();
if (xmlhttp == null) {
alert("Your browser dosen't support AJAX");
return;
}
var url = "db/getplayergame.php?reg=ellermaasoft";
url = url + "&player=" + document.getElementById("customers").value;
url = url + "&sid=" + Math.random();
url = url + "&year=" + document.getElementById("year").value;
if (document.getElementById('tabber').tabber) {
url = url + "&page=" + document.getElementById('tabber').tabber.activetab;
}
else url = url + "&page=0";
xmlhttp.onreadystatechange = stateChanged;
xmlhttp.open("GET", url, true);
xmlhttp.send(null);