Cancel pending bloodhound request in Twitter typeahead.js
问题 I have twitter typeahead.js setup like this: var filteredSource = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.obj.whitespace('value'), queryTokenizer: Bloodhound.tokenizers.whitespace, remote: { url: '@Url.Action("Get", "Search")/', prepare: function (query, settings) { settings.url = settings.url + $('#filter-select').val() + '?q=' + encodeURIComponent(query); return settings; }, rateLimitBy: 'throttle', rateLimitWait: 800 } }); $('#search').typeahead({ hint: false, highlight: