search

Home  >  Q&A  >  body text

javascript - When map renders the img tag, the images will be separated by commas. Why?

image description

过去多啦不再A梦过去多啦不再A梦2834 days ago947

reply all(1)I'll reply

  • 黄舟

    黄舟2017-05-24 11:39:37

    imageList.map(item=>(
        '<img width="32px" height="32px" src="'+ item +'" alt=""/>'
    )).join('');

    reply
    0
  • Cancelreply