实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE HTML>
2
<html>
3
<head>
4
    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
5
    <title>Demo For AutoComplete.js</title>
6
    <script type="text/javascript" src="https://ku.shouce.ren/libs/jquery/1/jquery1.8.3.min.js"></script>
7
    <link rel="stylesheet" type="text/css" href="//ku.shouce.ren/libs/autoComplete/css/jquery.autocomplete.css">
8
    <script type="text/javascript" src="//ku.shouce.ren/libs/autoComplete/js/jquery.autocomplete.min.js"></script>
9
    <script src="//shouce.ren/static/demo/autoComplete/test.js"></script>
10
    <style type="text/css">
11
        body {
12
            margin: 0px;
13
            background: #f4f4f4;
14
            font-family: Helvetica Neue, Helvetica, Arial;
15
        }
16
    </style>
17
    <script type="text/javascript">
18
        $(document).ready(function(){
19
            $('#down').AutoComplete({
20
                'data': ['One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'Eleven', 'Twelve'],
21
                'itemHeight': 20,
22
                'width': 280