SyntaxError:期望表达式,得到'<'在Heroku上

时间:2015-06-26 07:32:19

标签: javascript php apache heroku nginx

当我点击本地计算机上的index.html文件时,页面已正确加载到浏览器中。但是,当我在herokuapp上打开网站时,我得到了#34; SyntaxError:expect expression,得到了'<'""我链接到html中的所有.js文件的错误。

error screenshot

如果有任何帮助,我将不胜感激。

谢谢!

1 个答案:

答案 0 :(得分:1)

The links are propably not working when installed on Heroku. Use the net panel of firebug or your browser developer tools to see which absolute URL the browser is trying to load. Most likely it is invalid and a HTML 404 error page is returned (starting with a '<')