Javascript typeahead.min.js Github链接不工作

Javascript typeahead.min.js Github链接不工作,javascript,twitter-bootstrap,github,typeahead.js,twitter-typeahead,Javascript,Twitter Bootstrap,Github,Typeahead.js,Twitter Typeahead,我使用BootstrapV3.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=

我使用BootstrapV3.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>
我的搜索下拉列表不再工作。我试图用工作链接替换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 
因为它是升级版本,所以无法工作。知道我如何找到我正在使用的版本吗。我真的对正在发生的事情感到困惑,需要你的帮助。谢谢。

您应该使用源代码来获取Javascript依赖项

例如,如果使用,而不是:

<script src="http://twitter.github.com/typeahead.js/releases/latest/typeahead.min.js">

您可以使用:

<script src="//cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.9.3/typeahead.min.js"></script>

如果您想确保始终使用最新的主分支,Github会破坏托管在raw.Github.com上的javascript添加。但是,这是一个简单的修复,只需删除使用域的“.”句点:“rawgithub.com”

原件:

<link href="http://raw.github.com/jharding/typeahead.js-bootstrap.css/master/typeahead.js-bootstrap.css" rel="stylesheet" media="screen">

变成:

<link href="http://rawgithub.com/jharding/typeahead.js-bootstrap.css/master/typeahead.js-bootstrap.css" rel="stylesheet" media="screen">

查看或。他们都有hogan和typeahead主持。
<link href="http://rawgithub.com/jharding/typeahead.js-bootstrap.css/master/typeahead.js-bootstrap.css" rel="stylesheet" media="screen">