I`m trying to do an Ajax Request but for some reason it wont accept my concatenated string. When the query should have some parameters it leaves them out and makes GET call.
这里是I've撰写的法典的一小部分。
var queryString = "";
var separator = "?";
for (param in config.query) {
queryString = queryString.concat(separator, param, "=", config.query[param]);
separator = "&";
}
var url = config.url + queryString;
$.ajax({
url : url,