jQuery.replaceWith doesn't take [removed] tags

前端 未结 3 571
渐次进展
渐次进展 2021-01-13 15:34

I have an AJAX response that contains some HTML, including

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-13 16:30

    It will return a string!!

    $.get("ajax.php")
         .success(function(returningHtmlString) {
              $(element).replaceWith(returningHtmlString);
         });
    

提交回复
热议问题