0
我目前正在将窗体BootsTrap 2.3切换到Bootstrap 3.0。 正如我们都知道,在引导3.0没有预输入,所以我使用Twitter的一个: https://github.com/twitter/typeahead.js/Twitter typeahead .js文件没有更新
我能够查询,但由于某些原因,查询未更新...
下面是代码:
$('.typeahead').typeahead([
{
name: 'users',
prefetch: '../user/generate-users-typeahead',
remote: '../user/generate-users-typeahead',
limit: 5
},
])
例如,如果我们开始进入了Exa仍然会有与用户名admin例如结果...
任何想法,为什么它是做什么?
谢谢, 阿糖胞苷
也许你的localStorage包含“旧”数据,另请参阅:http://stackoverflow.com/questions/7667958/clear-localstorage –
我不知道你的意思...我认为键入将自动清除这些? !?!?!? –
不,它将数据(json)存储在localstorage中。你可以为它设置一个ttl。尝试你的代码而不用预取。 –