开发者

jquery ajax modify data response

$.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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜