zl程序教程

您现在的位置是:首页 >  前端

当前栏目

在Html.ActionLink中运用二维判断语句

HTML 语句 判断 运用 二维
2023-09-11 14:19:21 时间
@Html.ActionLink("公告信息", "notice", "article", null, new { @class = ViewData["getclass"]!="notice"?"":"currclass" })
@Html.ActionLink("历史查询", "index", "home", new { hd = DateTime.Today.ToString("yyyy-MM-dd") }, new { @class = ViewData["getclass"] == "order" && Request["hd"] != null ? "currclass" : "" })