在這行代碼:請解釋我 - xmlhttp.open(「GET」,「gethint.php?q =」+ str,true);
xmlhttp.open("GET","gethint.php?q="+str,true);
是什麼gethint.php?q="+str
的意義,以及爲什麼這很重要?
在這行代碼:請解釋我 - xmlhttp.open(「GET」,「gethint.php?q =」+ str,true);
xmlhttp.open("GET","gethint.php?q="+str,true);
是什麼gethint.php?q="+str
的意義,以及爲什麼這很重要?
這裏,
xmlhttp.open("GET","gethint.php?q="+str,true);
謝謝Iqbal先生:) – Dilip1985
含義是你得到參數q到gethint.php。當您只想在不重新加載的情況下獲得結果時,這一點很重要。
+1檢索值,我還會提到'q'可以從任何查詢字符串中的'$ _GET []'訪問。 –
代碼正在試圖獲得一個網址,其中q作爲參數,通過GET傳遞給gethint.php頁面上此URL – Satya
其非常基本的Thing.As你的代碼中傳遞一個值(在STR)方法您可以通過$ _GET ['q'] –