开发者

Sharepoint - Using ScriptLink with js in Library

开发者 https://www.devze.com 2023-02-22 15:35 出处:网络
How can i include js which is in a sharepoint library. I tried that but without suc开发者_运维问答ces:

How can i include js which is in a sharepoint library. I tried that but without suc开发者_运维问答ces:

<SharePoint:ScriptLink ID="Formjs"   runat="server" Localizable="false"  Name="<% $SPUrl:~SiteCollection/My Library/myjs.js %>" />

Regards,


I just did this, I have my js in a doclib called "scripts", so its just

<script src="/scripts/myfile.js" language="javascript"></script>

That did it for me because I didn't need any of the advanced scriptlink options.

0

精彩评论

暂无评论...
验证码 换一张
取 消