简体   繁体   中英

Ruby on rails require jquery

Does Jquery have to be manually included in rails? Or is it a default? I see in the asset pipeline manifest:

require jquery
require jquery-ujs

It doesn't have to be included, but it will be included unless you remove it. Most applications will benefit from it being present, but if you don't use JavaScript in any of your views, you could always leave it out.

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.

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