Injecting Javascript to Iframe

前端 未结 1 1939
忘掉有多难
忘掉有多难 2020-12-12 07:34

I am making a live editor for my website. I have the CSS and HTML parts down, only issue is the JS part now. Here is a snippet of the code

var frame = $(\'#p         


        
1条回答
  •  無奈伤痛
    2020-12-12 08:32

    These two lines of code look like they could have problems:

    csstag = contents.find('head').append('').children('style');
    java = contents.find('head').append('
    
                                     
                  
提交回复
热议问题