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.
精彩评论