Executing [removed] elements inserted with [removed]

后端 未结 20 2887
囚心锁ツ
囚心锁ツ 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 00:56

    Thanks to Larry's script, which worked perfectly well in IE10, this is what I've used:

    $('#' + id)[0].innerHTML = result;
    $('#' + id + " script").each(function() { this.text = this.text || $(this).text();} );
    

提交回复
热议问题