当我更改typeahead的值时,它已经是异步的,请求不会发送,而是从旧的响应加载。
$('#MyTypeahead').typeahead('val', 'something');// Send async request
$('#MyTypeahead').typeahead('val', 'something else');// Send async request
$('#MyTypeahead').typeahead('val', 'something');// loads from the first one出于某些原因,每次typeahead的值发生变化时,我都需要进行异步
发布于 2019-05-06 23:01:47
没有记录,每次搜索我都要清除远程缓存,
solution只是禁用了缓存
remote : { cache:false ...}https://stackoverflow.com/questions/55973310
复制相似问题