首页 > 代码库 > 时间格式处理

时间格式处理

<script type="text/javascript">          var param = window.location.search;          var bianhao = param.substr(1,2);          var riqi = param.substr(3,10);          if(riqi==‘‘){          var d=new Date();          var Month=d.getMonth()+1;          var Day=d.getDate();          if (Month < 10 ){var Month=‘0‘+ Month}          if (Day < 10 ){var Day=‘0‘+ Day}          var riqi = d.getFullYear()+‘-‘+Month+‘-‘+Day;          }          play(riqi,bianhao);          function liveserver() {             $.pe.ajax(‘updatelabel‘,{labelName:‘點播回看主機選擇‘,params:{},success:function(response){                $(‘#smoothmenu‘).html($(response).find(‘body‘).text());             }})       }</script>

时间格式处理