这两个同时用会有冲突.懒得翻译了,需要的自己看哈. 以下摘自stackoverflow. I have an input field, where I try to make autocomplete suggestion. Code looks like <input type="text" id="myinput"> <div id="myresults"></div> On input's blur()
// 智能搜索 function oSearchSuggest(searchFuc) { var input = $('#in'); var suggestWrap = $('#gov_search_suggest'); var key = ""; var init = function(){ input.bind('keyup',sendKeyWord); input.bind();}) } var hideSuggest = function(){ suggestWrap.hide