Invalid assignment left-hand side, javascript

前端 未结 6 1665
清酒与你
清酒与你 2021-01-15 16:33

I am sure I am doing something silly here:

var addhtml = \'
\' += \'
e[\"screen_name]&
6条回答
  •  悲哀的现实
    2021-01-15 16:53

    You don't need += to concatenate, you just need +

    This is ok

    var addhtml = '
    ' + '
    e["screen_name]
    ' + '
    ' +'
    e["description"]
    ' + '
    '; console.log(addhtml);

提交回复
热议问题