简体   繁体   中英

SharePoint 2013 Link JS within Master Page

I'm trying to add jquery's js file to my master page (seattle.master). I cannot get any suggestions from the internet to work- each suggestion seems to come with replies of "that doesn't work- try this instead- that doesn't work" type of loop.

Here is the type of thing I've been trying- ...After the initial script links in the master file...

<SharePoint:ScriptLink ID=”ScriptLink1″ runat=”server” Defer=”False” Name=”~site/SiteAssets/Javascript/jquery-1.10.2.min.js”></SharePoint:ScriptLink>

This gives me a blank page of death. Any ideas.

You can try this. 1) create solution 2) add code as per link http://www.jeanpaulva.com/index.php/2013/10/02/how-to-deploy-javascript-to-master-page-through-solution/ 3) deploy solution

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