jquery append external html file into my page

后端 未结 5 509
长发绾君心
长发绾君心 2020-12-02 14:48

I\'m trying to append an external html content (div plus some text inside just for testing) this way:

$.get(\"banner.html\", function(data){
    $(this).chil         


        
5条回答
  •  余生分开走
    2020-12-02 15:15

    i'm not sure what you're expecting this to refer to in your example.. here's an alternative method:

    
        
            
            
        
        
            

提交回复
热议问题