bootstrap typeahead 输入填充 常用

2019-07-07 15:09:12 浏览数 (1)

<!doctype html> <html> <head> <meta charset="utf-8"> <title>联想控股</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="css/bootstrap.css" rel="stylesheet" type="text/css"> <script src="http://code.jquery.com/jquery.js"></script> <script src="js/bootstrap.js"></script> <script src="js/bootstrap3-typeahead.min.js"></script> </head> <body> <div style="margin: 50px 50px"> <input type="text" id="txtUser" name="txtUser" value="" />

</div>

<script>

("#txtUser").typeahead({ source: localArrayData }); }); </script> </div> </body> </html>

0 人点赞