In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces vue how to achieve the search small function, the article introduces in great detail, has a certain reference value, interested friends must read it!
The details are as follows
{{item}} new Vue ({el: "# app", data () {return {keyword: ", fruit: [" Apple "," sand fruit "," begonia "," wild cherry "," loquat "," Hawthorn "," Hawthorn "," fragrant pear "," Sydney "," cypress "," rose fruit "," Juglans mandshurica "," apricot "," cherry "," peach " "Honey peach", "nectarine", "flat peach", "plum", "plum", "white jade cherry", "BlackBerry", "raspberry", "cloud berry", "Luogan berry", "white leaf berry", "strawberry", "pineapple", "orange", "sugar orange", "orange", "lemon", "lime", "grapefruit", "kumquat", "grapefruit" "Citron", "bergamot", "finger orange", "yellow peel fruit", "cantaloupe", "cantaloupe", "Bailan melon", "cantaloupe"]}}, computed: {"fFruit" () {/ / if the keyword is empty Return all fruits if (this.keyword== "") {return this.fruit } else {/ / when a text in Frui contains keyword text, then the current data is retained / / filter filtered back to true retention, and return this.fruit.filter is filtered for false (item= > {return item.includes (this.keyword)})})
Results:
The above is all the content of the article "how to achieve the search small function of vue". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 247
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.