有人可以告诉我如何在输入令牌时取消以前的ajax请求吗?我遇到了多个ajax请求的问题,我的服务器因此而挂起。
$('#Searchinput').tokenInput(getMyRestServer, {
theme: "facebook",
queryParam : "param",
preventDuplicates: true,
tokenDelimiter: "|",
minChars: 5,
hintText: "Type your search criteria here",
noResultsText: "No Results found. Please refine your search...",
searchingText: "Fetching results ...please wait...",
allowCustomEntry: true});