2010-06-17 46 views

回答

9
xmlhttp.open("GET","getuser.php?q=" + q + "&r=" + r, true); 

請注意,如果它們包含特殊字符,這將不會正確地轉義您的參數。您可能需要使用類似encodeURIComponent(q)的內容。

+0

謝謝,我會看看encodeURICompinent() – JamesTBennett 2010-06-17 23:31:14

+0

哥們。這幫助我太多了。謝謝 – Mikey3Strings 2016-07-09 17:55:48

2

附加+ "&anotherVar=" + anotherString