Can't append [removed] element

后端 未结 18 2189
被撕碎了的回忆
被撕碎了的回忆 2020-11-21 06:11

Any idea why the piece of code below does not add the script element to the DOM?

var code = \"\";
$(\"#someElement\").append(cod         


        
18条回答
  •  粉色の甜心
    2020-11-21 06:40

    Just create an element by parsing it with jQuery.

    Working example: https://plnkr.co/edit/V2FE28Q2eBrJoJ6PUEBz

提交回复
热议问题