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

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!