简体   繁体   中英

How to include js file to Velocity template?

I am new to velocity.

I want to create new Liferay theme using bootstrap. But don't know how to include js files in the template.

Actually it's the same way as you would with an HTML page:

<script type="text/javascript" src="/my-theme/js/jquery.min.js"></script>

Just make sure that the JavaScript is in the relevant js folder in the theme's folder structure.

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