Home > front end >  Vue using v - bind dynamic binding SRC unable to load images. Please answer, thank you.
Vue using v - bind dynamic binding SRC unable to load images. Please answer, thank you.

Time:12-07

When write the path to death, images can be normal, according to



When using v - bind dynamic binding, display blank,

CodePudding user response:

First screening path problem, the second screening item contained in the data

CodePudding user response:


SRC: the require (' @/assets/about - bg1. PNG ')



Dynamic binding to use the require to introduce pictures

CodePudding user response:

refer to 1st floor staggered ashore youth reply:
path problem of the February first, the second screening item contained in the data

Paths can be displayed normally, but the picture is blank, img0 * 0

CodePudding user response:

Principle of the require that is truth, not sure

CodePudding user response:

references to Oliver, 4/f, Yin reply:
the require that is positive solution, the principle of not sure

The require that I didn't understand how to use

CodePudding user response:

The
reference cat cat cat cat cat 2 floor? Response:
& lt; Img SRC="https://bbs.csdn.net/topics/item.src"/& gt;

SRC: the require (' @/assets/about - bg1. PNG ')



Dynamic binding to use the require to introduce pictures


The second line of the SRC, should write in where? Sorry, can't understand,

CodePudding user response:

The
reference cat cat cat cat cat 2 floor? Response:
& lt; Img SRC="https://bbs.csdn.net/topics/item.src"/& gt;

SRC: the require (' @/assets/about - bg1. PNG ')



Dynamic binding to use the require to introduce pictures


I want to ask, I pass json inside address, could you tell me how to use the require the parcel?

CodePudding user response:

Require (json. SRC)

CodePudding user response:

The
reference 7 floor Spiderman9 response:
Quote: cat cat cat cat cat reference 2 floor? Response:
& lt; Img SRC="https://bbs.csdn.net/topics/item.src"/& gt;

SRC: the require (' @/assets/about - bg1. PNG ')



Dynamic binding to use the require to introduce pictures


I want to ask, I pass json inside address, could you tell me how to use the require the parcel?


https://www.cnblogs.com/qiu-freedom/p/10421091.html

CodePudding user response:

The
reference cat cat cat cat cat 8 floor? Response:
the require (json. SRC)

Thank you very much! Thank you for your answer!

CodePudding user response:

The
references 9 floor cat cat cat cat cat? Response:
Quote: refer to 7th floor Spiderman9 response:
Quote: refer to the cat cat cat cat cat 2 floor? Response:
& lt; Img SRC="https://bbs.csdn.net/topics/item.src"/& gt;

SRC: the require (' @/assets/about - bg1. PNG ')



Dynamic binding to use the require to introduce pictures


I want to ask, I pass json inside address, could you tell me how to use the require the parcel?


https://www.cnblogs.com/qiu-freedom/p/10421091.html

Thank you again!

CodePudding user response:

Using the require contains image path
Or change a webpack a configuration field named publicPath seems to be the name of the original poster can see for baidu

CodePudding user response:

reference _ 12th floor bath fire phoenix reply:
using the require contains image path
Or change a webpack a configuration field named publicPath seems to be the name of the original poster can baidu to see


Hello, has been solved, it is to use the require contains image path, thanks!

CodePudding user response:

The require more contains the minimum number of paths for pictures or Suggestions to change publicPath configuration

CodePudding user response:

On the 14th floor bath
reference _ fire phoenix response:
the require contains the minimum number of paths for pictures or Suggestions are much change publicPath configuration

Ok, thanks, I understand understand, just contact vue many places don't understand
  • Related