我的自动完成功能是:
$(document).ready(function(){
var a = $('#issued_to').autocomplete(
{
serviceUrl: 'http://myhost.com/ecard_emp_suggestion/',
minChars: 1,
delimiter: /(,|;)\s*/, // regex or character
maxHeight: 400,
width: 300,
zIndex: 9999,
deferRequestBy: 0, //miliseconds
//params: { country:'Yes' }, //aditional parameters
noCache: false, //default is false, set to true to disable caching
// callback function:
onSelect: function(value, data){ alert('You selected: ' + value + ', ' + data); },
// local autosugest options:
//lookup: ['January', 'February', 'March', 'April', 'May'] //local lookup values
});
});
现在的问题是,它将请求发送到: http ://myhost.com/ecard_emp_suggestion?query=input_text
但我需要http://myhost.com/ecard_emp_suggestion/input_text
我应该在哪里改变什么?