简体   繁体   中英

How to locate the javascript files in kentico portal engine

I created several custom javascript files in my kentico portal. The challenge is pointing to the files from my templates.

I tried this

       <script src="~/CMSScripts/Custom/custom1.js" language="javascript" type="text/javascript"></script>

and so on for more of such. It's not working! Please, help!

试试:

 <script src="<%=ResolveClientUrl("~/CMSScripts/Custom/custom1.js")%>" language="javascript" type="text/javascript"></script>

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