jquery html callback

前端 未结 4 1732
渐次进展
渐次进展 2020-12-06 17:08

Is there a callback for the html() function or a way to check that it is finished. For example:

$(\"#some_div\").html(\'something here\');

if($(\"#some_div\         


        
4条回答
  •  旧时难觅i
    2020-12-06 17:25

    html() is a synchronous operation. The actual updating of the DOM depends on what your html content is. If you have or