<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Autocomplete - Default functionality</title>
<link rel="stylesheet" href="autoComplete/jquery-ui.css">
<script src="autoComplete/jquery-1.10.2.js"></script>
<script src="autoComplete/jquery.ui.datepicker-zh-CN.min.js"></script>
<script src="autoComplete/jquery-ui.js"></script>
<link rel="stylesheet" href="autoComplete/style.css">
<script>
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"我是书",
"我的",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$( "#tags" ).autocomplete({
source: availableTags
});
});
</script>
</head>
<body>
<div class="ui-widget">
<label for="tags">Tags: </label>
<input id="tags">
</div>
</body>
</html>
支持中文只需要引入jquery.ui.datepicker-zh-CN.min.js即可