我使用 bootstrap v3.0.0 和 typeahead.js 实现了一个搜索栏下拉菜单。在我的项目完成时(2个月前)。我使用以下内容来包含模板引擎和 typeahead.min.js
<link href="http://raw.github.com/jharding/typeahead.js-bootstrap.css/master/typeahead.js-bootstrap.css" rel="stylesheet" media="screen">
<script src="http://twitter.github.com/typeahead.js/releases/latest/typeahead.min.js"></script>
<script src="http://twitter.github.io/typeahead.js/js/hogan-2.0.0.js"></script>
现在突然间,我受到了“这里没有 GitHub 页面”的欢迎。当我试图访问
http://twitter.github.com/typeahead.js/releases/latest/typeahead.min.js
http://twitter.github.io/typeahead.js/js/hogan-2.0.0.js
我的搜索下拉菜单不再起作用。我试图用一个工作链接替换 hogan 模板链接,https://raw.github.com/twitter/hogan.js/master/web/builds/2.0.0/hogan-2.0.0.js
但这里没有 typeahead.min.js 的替代品。事实上,任何版本都没有 typeahead.min.js。现在他们已将其更改为
http://twitter.github.io/typeahead.js/releases/latest/typeahead.bundle.js
由于它是升级版,因此不起作用。知道如何找到我正在使用的版本。我真的对正在发生的事情感到困惑,需要你的帮助。谢谢。