我已经包含了这个:
<link rel="stylesheet" href= "http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="/js/bootstrap3-typeahead.js"></script>
然后有输入:
<input type="text" name="name" autocomplete="off" class="typeahead" data-provide="typeahead"
data-items="4" data-source="['aaa','bbb','ccc']" placeholder="Find customer" />
什么都没发生。没有错误,没有建议的项目。这是为什么?我怎么能解决它?
我在那里下载了bootstrap3-typeahead.js:https://github.com/bassjobsen/Bootstrap-3-Typeahead