cannot load >

前端 未结 4 1063
日久生厌
日久生厌 2021-01-29 06:17

I\'m implementing as simple image gallery.

This is what I got for now

function init(){
  var elem = document.createElement(\"img\");

  elem.scr=\'upload         


        
4条回答
  •  抹茶落季
    2021-01-29 07:01

    You have made typo

    elem.scr='upload/creative-design-modern-furniture.jpg';
    

    should be

    elem.src='upload/creative-design-modern-furniture.jpg';
    

提交回复
热议问题