jquery event after html() function

前端 未结 5 1161
情话喂你
情话喂你 2021-01-11 19:05

Is there a way to launch an event after html() has been fired? Such as:

$.post(\"ajax.php\", {data :data}, function(data){
   $(\"#countries\").html(data, fu         


        
5条回答
  •  南方客
    南方客 (楼主)
    2021-01-11 19:48

    You can include the javascript code in your html response. An inline example:

      $("#content").html("hello\
    
                                     
                  
提交回复
热议问题