">
}).bind("flushCache",function(){
cache.flush();
}).bind("setOptions",function(){
$.extend(options,arguments[1]);
//ifwe'veupdatedthedata,repopulate
if("data"inarguments[1])
cache.populate();
}).bind("input",function(){
onChange(0,true);
}).bind("unautocomplete",function(){
select.unbind();
$input.unbind();
$(input.form).unbind(".autocomplete");如果你在reult时间中绑定了事件,又希望复制过来的内容也能够触发你的事件,可以加上如下的代码,这样就能保证用户不单击选项也能触发你的result事件。

}).bind("input",function(){
onChange(0,true);
}).bind("unautocomplete",function(){
select.unbind();
$input.unbind();
$(input.form).unbind(".autocomplete");
}).bind("change",function(){
$input.search(
function(result){
$input.trigger("result",result&&[result.data,result.value]);
}
);
});
相关推荐
yaohustiAC 0喜欢 / 2019-12-27
pythonclass 0喜欢 / 2019-11-07
geminihr 0喜欢 / 2015-03-19
83453065 0喜欢 / 2015-07-22
87433764 0喜欢 / 2017-02-21
89453862 0喜欢 / 2017-09-16
delmarks 0喜欢 / 2017-02-21
yesbuy00 0喜欢 / 2017-02-08
85403969 0喜欢 / 2016-10-25
gamecalo 0喜欢 / 2016-10-08
Kindlecode 0喜欢 / 2016-05-25
limengmeng00 0喜欢 / 2015-07-22
ruoyiqing 0喜欢 / 2015-05-10
WCschool官方 0喜欢 / 2015-04-16
AnneZhao 0喜欢 / 2015-04-10
89387046 0喜欢 / 2014-11-21
80510692 0喜欢 / 2014-09-15
ParadiserD 0喜欢 / 2014-03-11
杉林的HelloWord 0喜欢 / 2013-10-01
sunnygirls 0喜欢 / 2013-01-24
83447715 0喜欢 / 2012-12-18
讨厌什么变成什么 0喜欢 / 2019-06-21
83443560 0喜欢 / 2012-10-22
88324259 0喜欢 / 2012-08-25
pengornis 0喜欢 / 2012-07-19
82483564 0喜欢 / 2012-03-26
88284453 0喜欢 / 2012-02-23
zyb00yaonuli 0喜欢 / 2011-10-14
88570299 0喜欢 / 2011-10-14