摘要: <script type="text/javascript"> //关于js中取值问题 $(function(){ //定义function函数 var firstDate = new Date(); //取当前时间 firstDate.setDate(1); //第一天 //将当前时间置为本月的第 阅读全文
posted @ 2016-08-22 15:17 菜鸟&码农 阅读(37060) 评论(0) 推荐(0) 编辑
摘要: Calendar startdate = Calendar.getInstance(); startdate.setTime(new Date()); //当前时间 startdate.add(Calendar.YEAR,-2); //将当前时间的年份减2 startdate.set(Calenda 阅读全文
posted @ 2016-08-22 15:17 菜鸟&码农 阅读(221) 评论(0) 推荐(0) 编辑