[TOC] > [手册](https://bootstrap-autocomplete.readthedocs.io/en/latest/) ## 引用 `<script src="https://cdn.rawgit.com/xcash/bootstrap-autocomplete/v2.0.0/dist/latest/bootstrap-autocomplete.min.js"></script> ` ## 使用 js 用法 ``` <input class="form-control basicAutoComplete" type="text" autocomplete="off"> $('.basicAutoComplete').autoComplete({ resolverSettings: { url: 'testdata/test-list.json' } }); ``` 使用data ``` <input class="form-control basicAutoComplete" type="text" data-url="myurl" autocomplete="off"> $('.basicAutoComplete').autoComplete(); ```