摘要: 一. (1)指定日期加减多少天 (2)循环两个指定日期之间的日期 例: $start_time = '2017-07-01';$end_time = '2017-07-10'; 获取时间差 $diff= strtotime($end_time)-strtotime($start_time);$num 阅读全文
posted @ 2017-07-14 11:26 jok311 阅读(865) 评论(0) 推荐(0) 编辑
摘要: var obj = [{'pv':100,'uv':105},{'pv':123,'uv':132},{'pv':128,'uv':138},{'pv':88,'uv':68}]; console.log(sortByKey(obj,'pv','desc'));// console.log(sort 阅读全文
posted @ 2017-05-03 16:06 jok311 阅读(1586) 评论(0) 推荐(0) 编辑
摘要: window.onbeforeunload = onbeforeunload_handler; window.onunload = onunload_handler; function onbeforeunload_handler(){ var warning="确认退出?"; return war 阅读全文
posted @ 2017-05-03 15:50 jok311 阅读(860) 评论(0) 推荐(1) 编辑