-
Vue traverses the substitution array
first of all, there is such a piece of data
list[ zhangsan , lisi , wangmazi ]
people[
{
name: zhangsan ,
username:
},{
name: lisi ,
username:
},{
name: wangmazi ,
username:
}
]
then the qu...
-
How to add different styles to the data rendered with v-for in Vue?
for example: < tr vmurfort = "item in Data " >
<td class="red">{{item.td}}< td>
< tr >
Data = [td:12,td:14] what if I want to add a separate red style for td > 13?
...
-
Vue.js cannot add code
I added demo and reported an error. If you remove it, it s all right .
do not allow other things to be added. If you add something, you will report an error .
did you encounter this situation again?
...
-
The home page needs to call multiple API to get data and render the view. How to optimize it?
For the project of vue, there are many data modules on the home page. You need to call different API to get the data, and the request will slow down the loading of the first screen. How to optimize it? ...
-
Vue.js routing query
is the path wrong?
solved: because the image path is wrong
...
-
How to add Click events dynamically by vue
there is no effect after clicking, the console does not respond, and the click event does not take effect.
Code section:
.list(v-for="(i,n) in lists" :key="n" @click="change(i.url)") {{i.name}}
corresponding event:
cha...
-
Iveiw:Maximum call stack size exceeded
about why components used by iview in < route-view > cannot contain layout elements < Content > < Content > or the console will report an error Maximum call stack size exceeded. For these layout tags element-ui, this problem does not exist at all. Why...
-
1. What can I do to make the width of a div change from left to right? 2. Dynamically drag and edit multi-level header
means that the width on the right side of the div is fixed, pull the left border, and the width shrinks from left to right
div1,div2. div2div1div2
tablediv
...
-
How to set the width and height of the crop region and the width and height of the picture by cropper.js
what I use now is the cropper.js image clipping plug-in, which is used on the mobile end. I want to set the width of the picture is the width of the screen, and the frame and area of height auto, clipping is also the width of the screen, which is a squa...
-
How to use vue.js+html to upload multiple images to preview, delete and limit the number of uploaded pictures
beginner vue.js, wants to cooperate with html to try to upload multiple images to preview. You can delete and limit the number of pictures to be uploaded. I hope you can implement the vue.js part under the guidance of Daniel html Code: .
< div class= ...
-
The problem of introducing .js files into .vue files
I want to introduce a complete js file into a vue file. So I don t think it s appropriate to use import to introduce all the content at once. then I tried two more methods (I don t know if there is one) 1. < script src= "type= " text javascript ...
-
Invalid problem with vue.js deleting preview picture.
vue.js rookie, is trying to do a multi-image preview delete and upload function, has achieved a single image upload preview, deletion also encountered some problems, I hope Daniel guide the confusion, attach the html,vue.js code. main problem: when sel...
-
How to open the local folder in the vue project?
on my page, I want to see this picture under this path
(please don t say pass img, please read the title), a tag clearly. I tried it, but it didn t work. < input type= "file " > can only display file names on the page
...
-
About going back to the previous page
1. Now there is such a demand
when I browse the goods from the store page (A page), click on the goods, go to the product details page (B page), then place the order and go to the order page (C page), but the user may need to select the receiving addr...
-
In element, input gets the data from the server and renders it. Callback always shows that it is not a function.
The code is as follows:
although it works normally, it always displays this error. I would like to ask all of you, how to correct it?
...
-
Ask for advice on the problems encountered in echart chart options. Thank you.
, Xname namaLocation startend , , imgs
how to set the spacing between columns in figure 3 has no effect using the barCategoryGap and barGao properties
...
-
After the vue mavon-editor image is uploaded successfully, how can it be reflected in the article?
in the local test, mavon-editor implements the blog post time, which can be uploaded to the server when uploading the image, but an error is reported when it is echoed locally.
127.0.0.1:8080 127.0.0.1:3003()(mavon-editor)
could you tell me how to...
-
Vue file upload
I want to use vue to do a file upload function. If you upload a picture, you can preview the picture or edit the file. Which god has a good plug-in to recommend it? thank you ....
-
Pre-render the vuejs project using prerender-spa-plugin JS cannot be run?
I used prerender-spa-plugin for pre-rendering in the vuejs project. The code is as follows
new PrerenderSPAPlugin({
staticDir: path.join(__dirname, .. dist ),
routes: [ , help fee , help mnemonic , help agreement , hel...
-
How to make PC side highly compatible
how can the PC end be highly compatible? Generally speaking, our PC side only does width compatibility, if we want to do different resolutions, the display is the same. How do you do that? Is it possible to use rem?? background management system written...