模糊查询

Posted 。往心。

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了模糊查询相关的知识,希望对你有一定的参考价值。

源码:

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Autocomplete - Default functionality</title>
<!--
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
-->
<link rel="stylesheet" type="text/css" href="static/jquery/jquery-ui.css">
<script src="static/jquery/jquery-1.12.1.js"></script>
<script src="static/jquery/jquery-ui.js"></script>


<script>
$( function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"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-1.12.1.js,jquery-ui.js,jquery-ui.css

以上是关于模糊查询的主要内容,如果未能解决你的问题,请参考以下文章

C# Linq的模糊查询(包含精确模糊查询)

java 中模糊查询

模糊查询

mybatis中的模糊查询

怎样基于Redis实现模糊查询

jsp如何实现模糊查询