简单用法: $(function(){ var data = "the People's Republic of China".split(" "); $("#autocomplete").autocomplete(data,{minChars:0}).result(function(event,data,formatted){ alert(data); }); }); </script> <input type="t…
开始做的邮箱补全代码 //检查email邮箱 function isEmail(str) { if (str.indexOf("@") > 0) { return true; } else { return false; } } //绑定自动补全事件 function autoCompleBind() { var nowid; //当前索引 var totalid; //邮箱总数 var can1press = false; // var emailafter; var emai…