基本信息
源码名称:laytime时分秒优化 示例源码下载
源码大小:0.08M
文件格式:.rar
开发语言:CSS
更新时间:2017-07-06
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍
laytime基础上的优化

<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />

<link type="text/css" rel="stylesheet" href="./css/laydate_edit.css">
<link type="text/css" rel="stylesheet" href="./css/skins/laydate_edit.css">
<script src="./js/laydate_edit.js"></script>
<script src="./js/jquery-1.7.2.min.js"></script>

</head>
<body>
   <div class="demolist" style="margin-top: 120px;margin-left:120px">时分秒范围限制:
      <div class="inline">
        开始时间:<input onclick="startFunc()" class="inline laydate-icon" id="start" value="12:20:00" style="width:200px;text-align:center; margin-right:10px;">
        <br>
        结束时间:<input onclick="endFunc()" class="inline laydate-icon" value="20:49:49" id="end" style="width:200px;text-align:center;">
      </div>
      <br>
      <br>
      <br>
      <div class="inline">
        开始时间1:<input onclick="startFunc2()" class="inline laydate-icon" id="start2" value="00:00:00" style="width:200px;text-align:center; margin-right:10px;">
        <br>
        结束时间1:<input onclick="endFunc2()" class="inline laydate-icon" value="18:16:59" id="end2" style="width:200px;text-align:center;">
      </div>
    </div>
  </body>
</html>

<script type="text/javascript">
	


function startFunc(){
	new laydate({
	start_time: $('#start').val(),
	end_time:  $('#end').val(),
  elem: '#start',
  event: 'click', 
  format: 'YYYY/MM/DD hh:mm:ss',
  istime: true,
  istoday: false,
  choose: function(datas){
  	 //隐藏年月日
     $('#start').val($('#start').val().substr(11));
      
  }
});
}

function endFunc(){
	new laydate({
	start_time: $('#start').val(),
	end_time:  $('#end').val(),
  elem: '#end',
  event: 'click', 
  format: 'YYYY/MM/DD hh:mm:ss',
  istime: true,
  istoday: false,
  choose: function(datas){
  	//隐藏年月日
    $('#end').val($('#end').val().substr(11));
  }
});
}



function startFunc2(){
	new laydate({
	start_time: $('#start2').val(),
	end_time:  $('#end2').val(),
  elem: '#start2',
  event: 'click', 
  format: 'YYYY/MM/DD hh:mm:ss',
  istime: true,
  istoday: false,
  choose: function(datas){
  	 //隐藏年月日
     $('#start2').val($('#start2').val().substr(11));
      
  }
});
}

function endFunc2(){
	new laydate({
	start_time: $('#start2').val(),
	end_time:  $('#end2').val(),
  elem: '#end2',
  event: 'click', 
  format: 'YYYY/MM/DD hh:mm:ss',
  istime: true,
  istoday: false,
  choose: function(datas){
  	//隐藏年月日
    $('#end2').val($('#end2').val().substr(11));
  }
});
}




</script>