Fork me on GitHub
摘要: $now_week_num = self::current_week(strtotime($date)); public static function current_week($date){ $week = self::get_week_block($date, $offset = 1); $w 阅读全文
posted @ 2021-12-09 18:03 君乐豹 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 通过年,月份获取一个月的周次信息 如果本月头一天不是星期一,则向上一个月取周一,本月最后的几天如果不能正好是一周,则忽略。 例如 2019-09月计算出来的结果 2016-08-29 2016-09-042016-09-05 2016-09-112016-09-12 2016-09-182016-0 阅读全文
posted @ 2021-12-09 18:00 君乐豹 阅读(189) 评论(0) 推荐(0) 编辑
摘要: <input type="radio" class="radio1" checked lay-ignore name="datatype" value="1"> 选项一 script $(“.radio1”).prop(‘checked’,true); form.render(“radio”); 阅读全文
posted @ 2021-12-09 17:57 君乐豹 阅读(308) 评论(0) 推荐(0) 编辑
摘要: php 获取指定月最后一天: <?phpfunction getthemonth($date){$firstday = date('Y-m-01', strtotime($date));$lastday = date('Y-m-d', strtotime("$firstday +1 month -1 阅读全文
posted @ 2021-12-09 17:50 君乐豹 阅读(70) 评论(0) 推荐(0) 编辑
Live2D