我需要为此格式输入屏蔽
HTML
@Html.TextBoxFor(model => model.DateTime, true,
htmlAttributes: new { @class = "form-control datetimeMask",
@maxlength = "20", @placeholder = Html.DisplayNameFor(model =>
model.DateTime) })
Jquery的
$(".datetimeMask").inputmask({
mask: "2/1/y h:s t\\m",
placeholder: "YYYYMMDD-HHMMTT",
alias: "datetime",
hourFormat: "12",
});