Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我选择一个元素时,是否可以防止关闭 typeahed div(在输入下方键入后出现)?
好吧,这很丑陋,但确实有效。请注意,它可能会在未来的 typeahead 版本中中断,当然:
http://jsfiddle.net/5fnX7/
基本上你覆盖DropdownView的close()方法:
DropdownView
close()
$(".tt").data("ttView").dropdownView.close = function() { };