1.v-for loop different icons;
2.
3.
4.v-for:
5. How can I make the icons looped out by v-for display normally?
1.v-for loop different icons;
2.
3.
4.v-for:
5. How can I make the icons looped out by v-for display normally?
1. {{}} output elements as plain text
2.v-text outputs elements as plain text
3.v-html parses elements as HTML tags and outputs
you need to output item.icon as a html tag so that iconfont can render correctly.
the solution is as follows:
< li vmurfort = "(item, index)" in iconList ">
<i class="iconfont" v-html="item.icon"></i>
should be a loop when icon
is treated as a string, and you can see if you can add double skimming: {{`item.icon`}}
1. In mpvue Mini Program, when I am in the textarea tag, when I use v-model to bind data, when I want to modify the data inside (such as deleting a few words in the middle of a paragraph), when I move the cursor to the position I want to delete, the fir...
as shown in the figure: the card can t move here. ...
I switch pages through the tab bar, but how do I get the title of the switch as shown in the figure, how do I get the currently selected title, that is, how to get the words "covered rice " code is as follows: <scroll-view class="left&q...
use mpvue to write Mini Program page, jump to the next page how to refresh the current page, or close but come in again to modify the content on the nickname page and not refresh it on this page ...
use mpvue to develop Mini Program, vendor.js what should I do if the file is too large? ...
problem description the URL must be https when debugging Mini Program web-view. How to agent https locally. Web development my usual http web page development is to modify the hosts file and proxy the domain name xx.xxx.com to the local 127.0.0.1 ...
problem description use mpvue to add config to the main under src. But none of the configurations took effect. And prompt that the entry app.json was not found the environmental background of the problems and what methods you have tried Baidu said...
problem description configure pug in the wepy project according to http: npm.taobao.org package., but as long as it is < or < =, it will report an error > > = No problem . the environmental background of the problems and what methods you have tri...
1. Is there any good solution to the problem of slow compilation of the rich text conversion plug-in wxParse? 2. Mini Program s < web-view > nested html, cannot be used at this time because rich text returns only part of the page. 3. Or is there any b...
sources of topics and their own ideas What is the specific purpose of adding a unique key to ? does key have an optimized effect when rendering the list for the first time? when is key optimized? I hope to see this small problem and promote thi...
vue development WeChat Mini Programs learning process from the background of the data, the foreground can not render, print found a _ _ ob__: Observer, wanted data, but I can not get it, I would like to ask how to solve this problem. Front end code &l...