帮助! jQuery 无法在 iPhone 上加载

发布于 2024-10-07 03:48:51 字数 369 浏览 0 评论 0原文

嘿 CodeWarriors,有人知道在 iPhone 上的 Mobile Safari 中加载一定量的 Javascripting/jQuery 是否会超时?移动的背景和心脏上的黑色覆盖物在 iPhone 上不起作用,但在 Firefox 和我的 MacBook Pro 的 Safari 上却很稳定 - 它们无法加载:

http://www.zookeeper.com/beyourowncreature/2011

在本网站发布之前,仍在处理一些事情...

如果您有任何想法,请提前致谢。

-戴夫

Hey CodeWarriors, anyone know if on the iPhone in Mobile Safari whether there is a timeout for loading a certain amount of Javascripting/jQuery?? The moving background and the black covering over the heart are not working on the iPhone, but are solid on Firefox and my MacBook Pro's Safari – they don't load:

http://www.zookeeper.com/beyourowncreature/2011

Still working on some things on this site before it launches...

Thanks in advance if you have any ideas.

-Dave

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情丝乱 2024-10-14 03:48:51

我所看到的只是 window.Touch 子句中第 268 行第一行 jquery.spritely 中的错误。 el[0] 不存在

    activeOnClick: function() {
        // make this the active script if clicked...
        var el = $(this);
        if (window.Touch) { // iphone method see http://cubiq.org/remove-onclick-delay-on-webkit-for-iphone/9 or http://www.nimblekit.com/tutorials.html for clues...
            el[0].ontouchstart = function(e) {
                $._spritely.activeSprite = el;
            };
        } else {
            el.click(function(e) {
                $._spritely.activeSprite = el;
            });
        }
        return this;
    },

正如前面的评论所说,您有不匹配的标签

All I can see is an error in your jquery.spritely on line 268, 1st line in the window.Touch clause. el[0] does not exist

    activeOnClick: function() {
        // make this the active script if clicked...
        var el = $(this);
        if (window.Touch) { // iphone method see http://cubiq.org/remove-onclick-delay-on-webkit-for-iphone/9 or http://www.nimblekit.com/tutorials.html for clues...
            el[0].ontouchstart = function(e) {
                $._spritely.activeSprite = el;
            };
        } else {
            el.click(function(e) {
                $._spritely.activeSprite = el;
            });
        }
        return this;
    },

And as the previous comment says, you have and unmatched tag

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文