码迷,mamicode.com
首页 > Web开发 > 详细

js--时间比较

时间:2017-12-22 11:14:26      阅读:234      评论:0      收藏:0      [点我收藏+]

标签:hid   class   tar   element   height   res   xxx   win   onload   

window.onload = function () {
  var curDate = new Date();
  var startDate = new Date(Date.parse("2017/12/21"));
  var endDate = new Date(Date.parse("2018/01/01"));
  if (curDate >= startDate && curDate <= endDate) {
    //document.getElementById("txt_Name").value = document.getElementById("hid_txt_Name").value;
    window.alert("xxxx");

    function init() {
      self.moveTo(0, 0);
      self.resizeTo(screen.availwidth, screen.availheight);
    }
  }
}

js--时间比较

标签:hid   class   tar   element   height   res   xxx   win   onload   

原文地址:http://www.cnblogs.com/jxw-29/p/8074734.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!