Uncaught SyntaxError:意外的令牌-jQuery-帮助! [英] Uncaught SyntaxError: Unexpected Token - jQuery - Help!

查看:99
本文介绍了Uncaught SyntaxError:意外的令牌-jQuery-帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我深入了解...此错误指向的唯一文件是我的jQuery文件.

Please help me get to the bottom of this...the only file that this error is pointing to, is my jQuery file.

在这里看到我收到的错误.

See the error I am receiving here.

如何在文件中找到引发此错误的行?

How do I find the line in the file that is throwing this error ?

Edit2:这是Nathan建议将.js替换为.html或根本什么都没有的屏幕截图:

Here is a screenshot after Nathan's suggestion of replacing .js with .html or nothing at all:

推荐答案

如果您查看右侧调试器中列出的data属性,则您似乎正在尝试eval()一些HTML代码作为JavaScript.我的猜测是您的AJAX请求呈现HTML错误或指向错误的URL,而没有找回JS.

If you look at the data property listed in the debugger to the right, it looks like you are trying to eval() some HTML code as JavaScript. My guess is would be that your AJAX request is rendering an HTML error or pointing to the wrong URL, and not getting JS back.

这篇关于Uncaught SyntaxError:意外的令牌-jQuery-帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆