我的日历未显示,应显示

时间:2019-08-14 16:03:47

标签: javascript html asp.net-mvc datepicker jquery-ui-datepicker

my calendar here,我的日历在开始时正确显示,一夜之间开始变得难看,如屏幕截图所示。我尝试了一切,但不知道问题出在哪里

<div class="row col-md-12">
  <div class="form-group">
    @Html.LabelFor(m => m.BirthDate, Resource.BirthDate, new { @class = "" })
    <div class="input-group">
      @Html.EditorFor(model => model.BirthDate, new { htmlAttributes = new { @class = "form-control", @readonly = "true"
      } })
      @Html.ValidationMessageFor(model => model.BirthDate, "", new { @class = "text-danger" })
    </div>
  </div>
</div>


@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
@Scripts.Render("~/bundles/jqueryui")
@Styles.Render("~/Content/cssjqryUi")
<script type="text/javascript">

  $(document).ready(function () {
    $('input[type=datetime]').datepicker({
      dateFormat: "dd/M/yy",
      changeMonth: true,
      changeYear: true,
      yearRange: "-60:+0"
    });

  });
</script>

}

0 个答案:

没有答案