我正在使用一个自动完成的jQuery插件。我正在使用的代码类似于这样:
$(function() {
$( "#search").keyup(function(){
var cat=$("#categoryTag option:selected").text();
var url = "${resource.path}.suggestion.$"+this.value+".$"+cat+".json";
$(this).autocomplete({
source: url,
minLength: 2,
appendTo: "#search_results_div"
});
});
它的工作很好,但我得到的URL是这样的http://servername/pagename/suggestion.textboxValue.dropdownValue?term=textBoxVale 我的问题是如何避免查询字符串,因为我想要这样的URLhttp://servername/pagename/suggestion.textboxValue.dropdownValue 请给我指点。谢谢。