【原创】jquery datepicker最基本例子演示【1】
自己项目名称:C****CodeTest->jqueryDatePickerController->Index
1.最简单基本的例子如下,前端:
@{ ViewBag.Title = "Index"; Layout = null; } <link href="~/Content/jquery-ui.css" rel="stylesheet" /> <script src="~/Scripts/jquery-3.4.1.js"></script> <script src="~/Scripts/jquery-ui-1.10.4.custom.js"></script> <p></p> <p>Date: <input type="text" id="datepicker"></p> <script type="text/javascript"> $(function () { $("#datepicker").datepicker(); }); </script>
2.测试结果如下:
本文来自博客园,转载请注明原文链接:https://www.cnblogs.com/keeplearningandsharing/p/16203389.html