我似乎无法找出什么不对的代码。我已经尝试过任何事情。在Internet Explorer中,.load
和.ready
都不会触发。jQuery的.load不工作的IE(工程罚款所有其他浏览器)
这是一个活生生的例子:https://www.assamteacompany.ca/product.php?productid=17657
$(function(){
$('.descr').each(function(){
var teaAccessory = $('.descr > div').attr('id');
var description = '_description';
$(this).load('https://www.assamteacompany.ca/skin/assam_tea_company/script/product_descriptions.html #' + teaAccessory + description);
});
});
你能告诉我们相应的HTML吗? – devnull69 2012-03-08 23:03:33
https://www.assamteacompany.ca/product.php?productid=17550 – 2012-03-08 23:08:57
是否有应该是哈希前的空间?'product_descriptions.html#' – 2012-03-08 23:14:53