简单的 AJAX 脚本不会仅在主页上加载
My email script on the left navigation panel... under "Brad's Secrets of Attraction" will not load on the homepage. It works on EVERY other page.
Live Site: BradP.com SITE MAY BE NSFW
This is strange to me.
Does anyone know why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
FireBug 报告:
未捕获的异常:访问受限 URI 被拒绝 (NS_ERROR_DOM_BAD_URI)
[中断此错误] eval(function(p,a,c,k,e,r){e=function(c)...h|borderTopWidth|abbr'.split('|'),0,{} ))
它适用于 bradp.com,但不适用于 www.bradp.com,可能是因为您的基本 href 是 bradp.com。 尝试删除基本 href 并查看是否可以解决问题。
FireBug reports:
uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)
[Break on this error] eval(function(p,a,c,k,e,r){e=function(c)...h|borderTopWidth|abbr'.split('|'),0,{}))
It works on bradp.com but not www.bradp.com probably because your base href is bradp.com. Try removing the base href and see if that fixes it.
该脚本似乎仅在您第一次访问该页面时加载(实际上激活)。 换句话说,当我刷新时它没有加载,但是当我清除了cookie后它就加载了。 因此它似乎是由某种 cookie 触发的。 这有帮助吗?
The script seems to load (activate actually) only when you first visit the page. In other words, when I refreshed it didn't load, but it did once I had cleared my cookies. Therefore it seems to be triggered on some sort of cookie. Does this help?