上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 23 下一页
摘要: 1.每十秒执行一次 crontab -e中输入以下内容: * * * * * cd /Applications/phpstudy/WWW/lecent && php a.php* * * * * sleep 10; cd /Applications/phpstudy/WWW/lecent && ph 阅读全文
posted @ 2021-10-26 11:47 程序员小艺 阅读(927) 评论(0) 推荐(0) 编辑
摘要: <?php set_error_handler("callback1"); register_shutdown_function("callback2"); set_exception_handler("callback3"); function callback1($type, $message, 阅读全文
posted @ 2021-10-25 14:03 程序员小艺 阅读(102) 评论(0) 推荐(0) 编辑
摘要: var notify = new Notification('通知标题', {body: '这里是通知内容!'}); notify.onclick = function () { //如果通知消息被点击,通知窗口将被激活 window.focus(); notify.close(); //打开对应的 阅读全文
posted @ 2021-09-15 00:52 程序员小艺 阅读(993) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-09-14 07:08 程序员小艺 阅读(0) 评论(0) 推荐(0) 编辑
摘要: create_time时间格式 SELECT DATE_FORMAT(create_time,'%Y%u') weeks,COUNT(id) COUNT FROM role GROUP BY weeks; SELECT DATE_FORMAT(create_time,'%Y%m%d') days,C 阅读全文
posted @ 2021-09-10 15:28 程序员小艺 阅读(653) 评论(0) 推荐(0) 编辑
摘要: <script> const element = document.getElementById('tabs'); watermark(element); function watermark(element, config) { // 获取元素的坐标 function getOffset(el){ 阅读全文
posted @ 2021-09-09 16:15 程序员小艺 阅读(316) 评论(0) 推荐(0) 编辑
摘要: $admin = Db::connect('mongo')->name('admin')->where('_id' , new \MongoDB\BSON\ObjectId('61304f37f31a000006000cf3'))->select()->toArray(); 阅读全文
posted @ 2021-09-02 12:45 程序员小艺 阅读(357) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-08-28 10:03 程序员小艺 阅读(0) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "io" "os" "strconv" "bytes" ) func check(e error) { if e != nil { panic(e) } } /** * 判断文件是否存在 存在返回 true 不存在返回false */ func 阅读全文
posted @ 2021-07-30 10:49 程序员小艺 阅读(202) 评论(0) 推荐(0) 编辑
摘要: if _, ok := map[key]; ok { //存在} 阅读全文
posted @ 2021-07-30 09:18 程序员小艺 阅读(80) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 23 下一页