Executing [removed] elements inserted with [removed]

后端 未结 20 2538
囚心锁ツ
囚心锁ツ 2020-11-22 00:12

I\'ve got a script that inserts some content into an element using innerHTML.

The content could for example be:



        
20条回答
  •  长发绾君心
    2020-11-22 01:04

    function insertHtml(id, html)  
    {  
       var ele = document.getElementById(id);  
       ele.innerHTML = html;  
       var codes = ele.getElementsByTagName("script");   
       for(var i=0;i

    It works in Chrome in my project

提交回复
热议问题