gpt4 book ai didi

ruby-on-rails-3 - Rails 3.1 javascript_include_tag

转载 作者:行者123 更新时间:2023-12-02 02:23:09 25 4
gpt4 key购买 nike

<%= javascript_include_tag 'javascripts/admin/manage_customer.js' %>
=> <script src="/assets/javascripts/admin/manage_customer.js" type="text/javascript"></script>

如何在 Rails 3.1 中生成指向 /javascripts/admin/manage_customer.js 的简单 JS 链接?

最佳答案

只是在前面加一个斜杠。

<%= javascript_include_tag '/javascripts/admin/manage_customer.js' %>

关于ruby-on-rails-3 - Rails 3.1 javascript_include_tag,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7194838/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com