Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery IE:SCRIPT5009:';e';是未定义的_Jquery_Internet Explorer - Fatal编程技术网

Jquery IE:SCRIPT5009:';e';是未定义的

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

我正在使用插件,它在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 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;