摘要: // 剩余时间提醒 function checkTime() { if (timeCompare()) { document.getElementById('distanceDeadline').innerHTML = "距离截止时间:已超时"; } else { var now = new Date(); ... 阅读全文
posted @ 2018-12-05 09:43 anderson_1996 阅读(1127) 评论(0) 推荐(0) 编辑
摘要: // 判断时间是否超过了16:30 // true: 已超时 // false: 未超时 function timeCompare() { var now = new Date(); var nowTime = now.getTime(); var year = now.getFullYear(); ... 阅读全文
posted @ 2018-12-05 09:30 anderson_1996 阅读(1123) 评论(0) 推荐(0) 编辑
摘要: 手机号码: 数字,带小数点,最多10位: 阅读全文
posted @ 2018-11-25 17:13 anderson_1996 阅读(117) 评论(0) 推荐(0) 编辑
摘要: grid.getStore().addListener('load', handleGridLoadEvent); function handleGridLoadEvent(store, records) { var gridCount = 0; store.each(function (r) { if (r.get('disor... 阅读全文
posted @ 2018-11-23 10:35 anderson_1996 阅读(701) 评论(0) 推荐(0) 编辑
摘要: //日期格式化 Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinu... 阅读全文
posted @ 2018-11-21 17:19 anderson_1996 阅读(1011) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-14 17:25 anderson_1996 阅读(2610) 评论(0) 推荐(0) 编辑
摘要: $.ajax({ url: url, type: "POST", dataType: "json", data: data, success: funtion1, error: function2 }); 阅读全文
posted @ 2018-11-14 17:23 anderson_1996 阅读(151) 评论(0) 推荐(0) 编辑
摘要: SELECT * FROM t_violation_info WHERE ( DATE(UPDATED_TIME) = CURDATE() AND HOUR (UPDATED_TIME) = 16 ) 阅读全文
posted @ 2018-11-14 17:00 anderson_1996 阅读(375) 评论(0) 推荐(0) 编辑
摘要: // 时间转字符串,转成yyyy-MM-dd HH:mm:SS格式 function dateToStr(datetime){ var dateTime = new Date(datetime); var year = dateTime.getFullYear(); var month = dateTime.getMonth()+1;//j... 阅读全文
posted @ 2018-11-10 01:20 anderson_1996 阅读(3461) 评论(0) 推荐(0) 编辑
摘要: 下面步骤的三个前提条件:安装git 安装idea 注册github账号 步骤一、绑定我的github账号与我的计算机 绑定我的github账号与我的计算机之后,便能很方便地上传或者更新我的代码,这需要我的计算机生成一个ssh key(密钥),然后将这个ssh key输入到我的github账号中。 1 阅读全文
posted @ 2018-10-23 23:02 anderson_1996 阅读(503) 评论(0) 推荐(0) 编辑