MVC 4模板创建的_LoginPartial.cshtml文件包含<text>
标记,如下所示:
<text>
Hello, @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!
@using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
@Html.AntiForgeryToken()
<a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
}
</text>
据我所知,<text>
不是公认的标签,为什么创建此代码的人会使用该标签?