cannot load >

前端 未结 4 1071
日久生厌
日久生厌 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 06:54

    You have a typo when you're setting the source. Instead of elem.scr it should be elem.src.

提交回复
热议问题