我已经破坏了IE的Rails 3.1应用程序,jQuery事件没有响应

我已经破坏了IE的Rails 3.1应用程序,jQuery事件没有响应,jquery,internet-explorer-8,ruby-on-rails-3.1,Jquery,Internet Explorer 8,Ruby On Rails 3.1,只有Internet Explorer不工作(我碰巧使用的是版本8,但7和9也不工作)。我的application.js文件中有以下代码: $(".attrs").live('click',function() { $("#product_application_" + $("#product_application_page_attribute").val()).val($(this).text()); hash = { type: "POST", url: "brands/g

只有Internet Explorer不工作(我碰巧使用的是版本8,但7和9也不工作)。我的application.js文件中有以下代码:

$(".attrs").live('click',function() {
    $("#product_application_" + $("#product_application_page_attribute").val()).val($(this).text());
    hash = { type: "POST", url: "brands/get_attributes", data: $("#attributeform").serialize() };
    $.bbq.pushState(hash);
    return false;
});

当我单击此事件绑定到的元素时,IE不会执行任何操作。我做了什么?

这可能是因为IE8不支持pushState

开发人员控制台中是否显示任何内容?请检查控制台。你可能有一个打字错误,可能与IE不支持的pushState有关?(我想会在IE 10上)肯定是这样。我必须在那里放一个明确的帖子。但现在每隔一个浏览器发布两次。我必须找到一种检测浏览器的方法。