I have a brand new rails app that has the following code:
//= require jquery
//= require jquery_ujs
//= require_tree .
alert("This is running");
<%= javascript_include_tag "application" %>
When I navigate to the page, I see the alert twice. Anyone know why? I have no pre-compiled assets.
应用程序布局已经包含application.js
文件,所以这是因为application.js
被包含两次。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.