获取网站标题
<SharePoint:ProjectProperty Property="Title" runat="server"/>
获取网站Url
<SharePoint:ProjectProperty Property="url" runat="server"/>
这些都可以放在JS中,示范在母版页做一个点击标题挑战到首页的效果。
<div style="cursor:pointer;" onclick="window.location.href=‘<SharePoint:ProjectProperty Property="Url" runat="server"/>
‘"> <SharePoint:ProjectProperty Property="Title" runat="server"/> </div>
时间: 2024-10-11 13:02:27