无法让 jQuery Cycle 在 Amazon Webstore 中工作
我正在绕圈,试图找出为什么我无法让 jQuery Cycle 在我们的亚马逊商店中运行。 jQuery 似乎工作正常,因为我可以从控制台运行命令,但每当我尝试调用 .cycle() 时,我都会收到“*.cycle() 不是函数”错误。我在其他几个网站上使用过cycle,没有任何问题,但这让我完全困惑。
这是一个非常基本的测试页面的链接,其中包含一个我无法使用的 Cycle 实例: http://www.st-amz.com/content/Slideshow.htm
亚马逊的代码一团糟,所以它可能与页面上的内容不合规有关,我不知道。任何帮助将不胜感激。
I'm running around in circles trying to figure out why I can't get jQuery Cycle to work in our Amazon store. jQuery seems to be working fine, as I can run commands from the console, but any time I try to call .cycle(), i get a "*.cycle() is not a function" error. I've used cycle on several other websites with no problems, but this has completely confounded me.
Here's a link to a very basic test page with a Cycle instance that I can't get to work:
http://www.st-amz.com/content/Slideshow.htm
Amazon's code is a complete mess, so it could have something to do with stuff on the page being non-compliant, I don't know. ANY help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的脚本标记指向错误的 URL:
http:// www.st-amz.com/content/images/jquery.cycle.min.js
但是cycle位于你的根目录之外:
http://www.st-amz.com/images/jquery.cycle.min.js
因此,更改脚本标记以使用 root-相对路径,它应该按预期工作:
Your script tag is pointing to the wrong URL:
http://www.st-amz.com/content/images/jquery.cycle.min.js
But cycle is located off your root:
http://www.st-amz.com/images/jquery.cycle.min.js
So change the script tag to use a root-relative path and it should work as expected:
循环插件的路径不正确,这会导致 404:
看起来这不是正确的 URL:
The path to your cycle plugin isn't correct, this results in a 404:
Looks like this isn't the right URL: