我需要为这种格式输入掩码
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",
});