ASP.NET MVC4 Jquer 日期控件 测试范例

<!doctype html>

<html >

<head>

<meta charset="utf-8" />

<title>jQuery UI Datepicker - Default functionality</title>

<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />

<script src="http://code.jquery.com/jquery-1.9.1.js"></script>

<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

<link rel="stylesheet" href="/resources/demos/style.css" />

<script>

$(function() {

$( "#cxp" ).datepicker();

});

</script>

</head>

<body>

<p>Date: <input type="text" /></p>

</body>

</html>

新建文本文档,将代码拷贝进去,然后修改文本文档的后缀名 .txt 改为 .html 预览即可运行

上面路径引用官方路径