我正在我的计算机上本地尝试 jquery UI 自动完成功能。但它根本不起作用。你能建议我任何解决方案吗?
这是我的演示代码:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script>
var data = ["Adriana","Alessandra","Behati","Candice","Doutzen","Erin","Gisele",
"Laetitia","Lily","Lindsay","Marisa","Miranda"];
$(function() {
$("#search").autocomplete({
source:data
});
});
</script>
Search: <input type="text" id="search" />'