gpt4 book ai didi

jquery - IE : SCRIPT5009: 'e' is undefined

转载 作者:行者123 更新时间:2023-12-01 07:20:30 34 4
gpt4 key购买 nike

我正在使用Galleriffic插件,它在 Chrome 和 Firefox 中工作正常,但在 IE 中不行,并返回 SCRIPT5009: 'e' is undefined。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;

关于jquery - IE : SCRIPT5009: 'e' is undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14307930/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com