$(this) doesn't work in a function

前端 未结 5 1798
渐次进展
渐次进展 2020-11-30 14:44

The following code loads html content from a file (i used this thread)



        
5条回答
  •  -上瘾入骨i
    2020-11-30 14:55

    You scoping of this is incorrect. You need to save your this to a variable outside of the ajax success function and reference it from that variable

    
    
                                     
                  
提交回复
热议问题