javascript - vue2 image loading failure and placeholder image flickering problem
欧阳克
欧阳克 2017-06-12 09:31:18
0
1
793

When developing vue2.
export const waterFallPlaceholder = e => {
    e.src = "../../images/WaterFallBanner.png";
    e.onerror = null;
    return e.src;
}

Then I struggled to find the problem. I inadvertently converted the relative path image into a base64 image, and the problem was solved. Since I don’t know much about base64, could you please tell me what the root of this problem is.

欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

reply all(1)
三叔

With this setting, webpack cannot package images. Written in template.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template