@{ 
    int columnId=Html.CurrentColumnId();//获取当前栏目id
}
<div class="left-column fl com-bd margin-right-10">
        <div class="nav-title">
            <span class="nav-sign">
                @Html.TopColumnName()
            </span>
        </div>
        <div class="nav-menu">
            @Html.TopColumnChildrensHtml()
            
        </div>
</div>
<script>
    function activeObj($obj) {
        $obj.addClass("active");
        $obj.children("span").addClass("active");
        $obj.children("ul").addClass("active");
    }
    var $currentLi = $("li[data-id='@columnId']");
    var $navmenu = $(".nav-menu");
    var $allLi = $navmenu.find("li");
    $allLi.each(function (idx) {
        var $this = $(this);
        if ($this.children("ul").length > 0)
        {
            $this.prepend("<span class=\"arrow\"></span>");
        }
    });
    var $shutIcon = $navmenu.find("span");
    $shutIcon.on("click", function () {
        var $this = $(this);
        $this.toggleClass("active");
        $this.siblings("ul").toggleClass("active");
    });
    var $parentLi = $currentLi.parentsUntil("div");
    activeObj($currentLi)
    $parentLi.each(function () {
        var $this = $(this);
        activeObj($this);
    });
</script>