자동 완성 기능을 위해 부트 스트랩 선행 사용하고 있습니다. 사용자가 첫 번째 문자를 입력 할 때까지 기다리지 않고 입력이 활성화 될 때 결과를 반환하려면 미리보기가 필요합니다 (마우스 클릭 또는 입력 탭으로). 더 typedown 같다.부트 스트랩 선행 기입
<input id="input01" class="input-medium" type="text" data-provide="typeahead" placeholder="TypeAhead…" autocomplete="off">
$(document).ready(function($) {
// Workaround for bug in mouse item selection
$.fn.typeahead.Constructor.prototype.blur = function() {
var that = this;
setTimeout(function() { that.hide(); }, 250);
};
$('#input01').typeahead({
source: function(query, process) {
return ["hello","world", "awesome"];
}
});
});
기능이 아직 조회되는 일을하지만, 도움이되지 않았다. – change