typeahead.js 不工作,控制台也没有错误
typeahead.js not working, no errors in console either
我不明白为什么这不起作用。没有错误,只是不显示我的选项。
<input id="hello" class="form-control" type="text">
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/lib/typeahead.js/dist/typeahead.bundle.js"></script>
var subjects = ['PHP', 'MySQL', 'SQL', 'PostgreSQL', 'HTML', 'CSS', 'HTML5', 'CSS3', 'JSON'];
$('#hello').typeahead({ source: subjects })
检查 fiddle :
[https://jsfiddle.net/413dg2o2/][1]
我对 html 和 javascript file.Please 进行了一些更改,请查看 url https://twitter.github.io/typeahead.js/ 了解更多详情。
我不明白为什么这不起作用。没有错误,只是不显示我的选项。
<input id="hello" class="form-control" type="text">
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/lib/typeahead.js/dist/typeahead.bundle.js"></script>
var subjects = ['PHP', 'MySQL', 'SQL', 'PostgreSQL', 'HTML', 'CSS', 'HTML5', 'CSS3', 'JSON'];
$('#hello').typeahead({ source: subjects })
检查 fiddle :
[https://jsfiddle.net/413dg2o2/][1]
我对 html 和 javascript file.Please 进行了一些更改,请查看 url https://twitter.github.io/typeahead.js/ 了解更多详情。