开发者

Sharepoint - Using ScriptLink with js in Library

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜