我正在使用此代碼讀取文件。 Chrome和FF一切正常,但IE不會更新文件中的數據......似乎是從緩存中讀取數據?有什麼建議麼?謝謝使用javascript讀取txt文件
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","YOUR_FILE.txt",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseText;
如何jQuery的適合這裏? – j08691 2013-04-06 22:22:00