Jquery IE:SCRIPT5009:';e';是未定义的
我正在使用插件,它在Chrome和Firefox中运行良好,但在IE中运行不正常,返回Jquery IE:SCRIPT5009:';e';是未定义的,jquery,internet-explorer,Jquery,Internet Explorer,我正在使用插件,它在Chrome和Firefox中运行良好,但在IE中运行不正常,返回SCRIPT5009:“e”未定义。 JQuery dode: // Initialize history plugin. // The callback is called at once by present location.hash. $.historyInit(pageload, "advanced.html"); // set onlick event for buttons using the
SCRIPT5009:“e”未定义。
JQuery dode:
// Initialize history plugin.
// The callback is called at once by present location.hash.
$.historyInit(pageload, "advanced.html");
// set onlick event for buttons using the jQuery 1.3 live method
$("a[rel='history']").live('click', function () {
if (e.button != 0) return true;
var hash = this.href;
hash = hash.replace(/^.*#/, '');
// moves to a new page.
// pageload is called at once.
// hash don't contain "#", "?"
$.historyLoad(hash);
return false;
});
看起来您缺少事件参数。在函数调用中添加一个e
$("a[rel='history']").live('click', function (e) {
if (e.button != 0) return true;
看起来您缺少事件参数。在函数调用中添加一个e
$("a[rel='history']").live('click', function (e) {
if (e.button != 0) return true;