HTML5中新增了Datalist Element,可以實現類似autocomplete的功能

<input list="food" name="food" >
<datalist id="food">
    <option value="rice">
    <option value="noodle">
    <option value="brunch">
    <option value="breakfast">
</datalist>
Categories: WebDesign