自动补全JS控件:Awesomplete

jopen 10年前

Awesomplete是一款超轻量级的,可定制的,简单的自动完成JS小部件,零依赖。采用现代化标准,适合于现代浏览器。自动补全JS控件:Awesomplete

<input id="myinput" />  <ul id="mylist">   <li>Ada</li>   <li>Java</li>   <li>JavaScript</li>   <li>Brainfuck</li>   <li>LOLCODE</li>   <li>Node.js</li>   <li>Ruby on Rails</li>  </ul>    var input = document.getElementById("myinput");  new Awesomplete(input, {list: "#mylist"});

项目主页:http://www.open-open.com/lib/view/home/1424835107702