这在 Visual Studio (2012) 中运行良好,但是当我发布到 IIS 服务器时,“ac 测试”警报会出现,但永远不会返回“Ams/GetAccounts”结果。
$("#Identity").autocomplete({
source: '/Ams/GetAccounts',
minLength: 3,
delay: 1000,
response: function (event, ui) {
alert("ac test");
},
select: function (event, ui) {
if (ui.item) {
// do something with selection
}
else {
alert("Nothing selected, input was " + this.value);
}
}
});