Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

what mean "Uncaught SyntaxError: Unexpected token < " ? #9

Open
caihuiji opened this issue Jul 14, 2015 · 3 comments
Open

what mean "Uncaught SyntaxError: Unexpected token < " ? #9

caihuiji opened this issue Jul 14, 2015 · 3 comments
Labels

Comments

@caihuiji
Copy link
Member

rtx

@loskael
Copy link
Member

loskael commented Jul 15, 2015

这是因为 通过 script 标签 的方式加载 js, 而这个文件有可能会被网关拦截响应一个 html 页面, 并且是以 <!DOCTYPE HTML> 开头, js 引擎无法解析"<", 所以报这个错, 参考:
111

@loskael
Copy link
Member

loskael commented Jul 15, 2015

这种情况 往往不是 js 本身的问题, 而是网络或服务器问题~

@caihuiji
Copy link
Member Author

确实。 好像只有手机报这个错误的时候,会回调onerror

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants