日期:2014-05-16 浏览次数:20360 次
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
<body>
<p>Date: <input type="text" id="datepicker" /></p>
</body>
<script type="text/javascript">
function pickDate(obj){
if(!$(obj).data("date")){
$(obj).datepicker();
$(obj).data("date",true);
}
$(obj).datepicker("show");
}
</script>