我正在使用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/