问题标签 [jquery-1.8]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
14774 浏览

javascript - jQuery 1.8:不支持的伪:悬停

以下代码unsupported pseudo: hover在 jQuery 1.8 上引发了错误,而它在 jQuery 1.7.2 上完美运行:

有谁知道发生了什么?

0 投票
1 回答
553 浏览

javascript - jquery.include 和 jquery 1.8 之间的冲突

它与加载图像有关,即使它被加载到缓存中。在 1.7.2 版本中一切正常,但现在我遇到了 promises() 的问题

0 投票
6 回答
23528 浏览

jquery - jQuery 1.8 外部高度/宽度不起作用

我在很多地方都outerHeight用过outerWidth。现在,在 jQuery 1.8 发布后,我遇到了很多由对象返回而不是其大小引起的问题。

例如:

我发现解决此问题的唯一方法是在函数中使用“真/假”,如下所示,但我得到的结果与标准width()height()函数相同:

有谁知道为什么这不再起作用或以其他方式获取元素的高度/宽度+其边距。

编辑:我开始相信这是因为我使用contents()函数在 iframe 中选择元素造成的。我会尝试做一个演示。

0 投票
2 回答
12131 浏览

jquery - jQuery 1.8 查找事件处理程序

如何在 jQuery 1.8+ 中的对象上查找事件处理程序?

0 投票
2 回答
1154 浏览

jquery - I keep getting the error "Object # has no method 'on'" in jQuery 1.8 when trying to trigger click events on dynamically loaded elements

I am using jQuery 1.8 and have been getting this error on some pages when I use the .on() fun

I am using jQuery 1.8 and have been getting this error on some pages when I use the .on() function. Other pages, seemingly doing the exact same thing -- attaching triggers to dynamically created elements, that I use do not generate this error:

JS:

All dynamically generated 'pagebutton' buttons, don't trigger. And the error shows up. If I use the .live() method that is deprecated, no problems. But I prefer to use the proper new 1.8 non-deprecated method, if possible?


You can use xargs -L1 lsof -p to run lsof once per pid.

Even better: use lsof -c to list all open files from commands matching a specific pattern:

0 投票
1 回答
678 浏览

jquery - JQuery animate 升级到 1.8.2 后停止工作

很简单...我将 JQuery 从 1.4.1 升级到 1.8.2,以下代码不再有效:

关于为什么会发生这种情况的任何建议?

0 投票
7 回答
16498 浏览

jquery - 为什么 Firefox 返回 0 作为 $(window).height() 的值

在我看来,Firefox 应该更好地配备在使用$(window).height().

我正在使用 jQuery 1.8.2。这是该特定版本中的错误吗?在计算视口高度时,我测试过的所有其他浏览器都会返回一个适当的值。

为了解决这个问题,我使用下面的 snip 将像素值应用到 div。

0 投票
2 回答
650 浏览

ajax - Symbian 的PhoneGap 应用程序| “应用程序关闭:WidgetUi KERN-EXEC 3”

我为 symbian 开发 phonegap 应用程序(我从这里得到的 symbian 的cordova )

当我的应用程序开始执行ajax请求 3-5 秒后,我收到错误:

在此处输入图像描述

也许有人面临这个问题?


更新1:

我发出跨域ajax请求jquery mobile 1.8.1

0 投票
1 回答
153 浏览

javascript - 为 1.8 Sizzle 重写一个 jQuery 表达式/选择器

不久前,我问了一个关于防止事件重复绑定的问题[这里] 我正在尝试更新 1.8 的表达式,但无法使其正常工作:

原本的:

我失败的尝试:

用法:

这有效:

0 投票
2 回答
1814 浏览

javascript - jQuery 1.8:Ajax beforeSend 阻止 deferred.done() 执行

如果您在 1.7 中执行此代码,则会出现警报,而 1.8 则不会:

我无法在 jQuery 文档、1.8 发行说明或提到此问题的 jQuery 错误跟踪器中找到任何内容。我想知道哪种行为是正确的,以及是否有人可以提供错误票证或 Github 提交的链接。

这是这个问题的小提琴:

http://jsfiddle.net/zJddg/