简体   繁体   English

Rails 3.2.3 JavaScript突然停止工作

[英]Rails 3.2.3 JavaScript suddenly stopped working

I'm not sure how or why this happened, but if anyone could suggest a course of action, I'd really appreciate it. 我不确定这种情况是如何发生或为什么发生的,但是如果有人可以建议采取行动,我将非常感激。 Is there anything I can type into the console to figure out why it's not working? 我可以在控制台中输入任何内容以弄清楚为什么它不起作用吗? I've tried 'bundle update' a few times and restarted my server, but nothing's working. 我尝试了几次“捆绑更新”,然后重新启动了服务器,但是没有任何反应。

So, I found out what was wrong: I had a coffeescript error in one of my XXXXXXX.js.coffee files. 因此,我发现了问题所在:我的XXXXXXX.js.coffee文件之一出现了coffeescript错误。 I found out this was the problem by reloading the page with chrome's javascript console open. 通过在chrome的javascript控制台打开的情况下重新加载页面,我发现了问题所在。 It logged an error and called out the file. 它记录了一个错误,并调出了文件。 I opened the file and fixed the error. 我打开文件并修复了错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM