Img onload does not execute?

created() {
    var img = new Image();
    img.onload = function() {
        console.log("load")
        document.body.appendChild(img);
    }
    img.src = "http://localhost:8080/assets/cat.jpeg";
},

not even in mounted (), call for help

Mar.13,2021

img.onerror also deal with it.


see what errors have been reported in your console


have you solved

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5356e-4457d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5356e-4457d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?