我真的很感激,如果任何人都可以解釋methe如下:請解釋一下「document.getElementById(」div_name「)。innerHTML = xmlHttp.responseText;」
document.getElementById("txtHint2").innerHTML=xmlHttp.responseText;
我的理解(等號後右側),其結果將在這種情況下div標籤內寫入...但是這是什麼responseText的實際?
我有HTML調用一些* .js。在這個我有網址到PHP。在PHP是命令連接到數據庫,並在我的查詢後給結果。
所以這個查詢的結果sholud涉及到=的responseText ...
我很困惑,不那麼熟悉這個...請幫助我!
*(reference)* http://www.w3.org/TR/XMLHttpRequest/#the-responsetext-attribute – Gordon 2010-08-27 13:07:47