开发者

jquery ajax modify data response

开发者 https://www.devze.com 2023-03-18 13:02 出处:网络
$.ajax({ url: \'http://localhost/apsd4/core/main_quota.html\', success: function(data) { $(\'#tabs-2\').html(r);
$.ajax({
  url: 'http://localhost/apsd4/core/main_quota.html',
  success: function(data) {
        $('#tabs-2').html(r);
        $('#tabs-2 #nini'开发者_如何学Python).remove();            
  }
}); 

I would like to change data response before echo data Stages:

  1. remove '#tabs-2 #nini'
  2. html()


I think as what I understand on your problem, you wanted to improve your $.ajax

$.ajax({
    type: "POST",
    url: "http://localhost/apsd4/core/main_quota.html",
    success: function(result) {

        $('#tabs-2').html(data).find('#nini').remove();
        // do some code here

    }
});
0

精彩评论

暂无评论...
验证码 换一张
取 消