<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div id="app">
<input type="text" v-model="keyword" placeholder="输入关键字" />
<div class="list">
<div class="item" v-for="item in fFruit" :key="item">
{
{item}}
</div>
</div>
</div>
</body>
<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
new Vue({
el:"#app",
data(){
return{
keyword:"",
fruit:[
"苹果","沙果","海棠","野樱莓","枇杷","欧楂","山楂","香梨",
"雪梨 ","温柏","蔷薇果","花楸","杏","樱桃","桃&#
vue实现搜索功能
最新推荐文章于 2024-07-19 13:39:06 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)