@{
    Layout = null;
}
<div class="head-tab">
    <ul>
        <li class="tabhead current"><a href="@Url.Action("Index","Friends")">好友管理</a></li>
        <li class="tabhead"><a href="@Url.Action("Index","FriendRequest")?requestxx=my">我的请求</a></li>
        <li class="tabhead"><a href="@Url.Action("Index","FriendRequest")?requestxx=friends">好友请求</a></li>
    </ul>
</div>
<script>
    $(function () {
        if (location.href.indexOf("/Desk/Friends")>=0) {
            $(".tabhead").eq(0).addClass("current").siblings().removeClass("current");
        } else if (Request("requestxx")=="my") {
            $(".tabhead").eq(1).addClass("current").siblings().removeClass("current");
        } else if (Request("requestxx") == "friends") {
            $(".tabhead").eq(2).addClass("current").siblings().removeClass("current");
        }
    })
</script>