通过AJAX从通过ajax加载的页面加载特定的html内容

时间:2014-10-26 14:05:46

标签: javascript jquery ajax

我想进行ajax调用,将一些特定的div加载到我的网页。但我想加载的内容本身是通过ajax加载的,所以我无法按照自己的意愿获取完整的html内容。

function loadajax(){  
$.ajax({ url: 'http://callcom-com-au.myshopify.com/products/repair',
    crossDomain: true,
    method:'post',
    dataType: 'html', 
    success: function(response) { 
      $('#customer_reviews').html(jQuery(response).find('.spr-header').html());
      $('.spr-icon').css('color','#f3b41b');
    }
   });
  }
$('document').ready(function(){
setTimeout(loadajax,10000);

});

有没有解决方法。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

只需打开此页面http://callcom-com-au.myshopify.com/products/repair和firebug / google-chrome-web-tools等,然后点击标签网络。然后直接链接到您想要的内容。

相关问题