Home > Web Front-end > JS Tutorial > How vue operates static images and network images

How vue operates static images and network images

php中世界最好的语言
Release: 2018-04-12 17:27:01
Original
3692 people have browsed it

This time I will bring you how to operate vueStaticPicturesand network pictures, Notes on vue operating static pictures and network picturesThere are Which ones, the following are practical cases, let’s take a look.

You need to dynamically request back-end images in your own project

Generally, it needs to be written in created because the image cannot come through during beforeCreate. If we want to request data at this time, then we need to store the address of the image in a place. It can be local or in vuex

If you want to add or change static pictures dynamically, we need to change the directory structure of the pictures

Put the image in

static and then imgUrl:

['/static/clinical.png','/static/nursing.png','/static/function.png','/static/test.png','/static/drug.png','/static/ admin.png']

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the PHP Chinese website!

Recommended reading:

vue changes the status of the currently selected item

How to get the selection when using the mint-ui time plug-in Value

How NodeJS implements WebSocket function

The above is the detailed content of How vue operates static images and network images. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template