摘要: 在现代 Web 开发中,我们常常需要知道用户是否还停留在当前页面。这个看似简单的需求,背后却关联着用户体验、数据分析和系统性能等多个重要方面。 “离开页面”这个行为本身可以被细分为多种场景: 切换到其他浏览器标签页或应用(页面变为不可见,但未关闭)。 最小化浏览器窗口(同上)。 关闭浏览器标签页或整 阅读全文
posted @ 2025-06-30 11:42 路闻man 阅读(11) 评论(0) 推荐(0)
摘要: 1.安装 1.1.WIN安装 【Windows】FFmpeg安装教程_ffmpeg win7-CSDN博客 1.2. linux安装 宝塔安装ffmpeg的方法_宝塔 ffmpeg-CSDN博客 2.使用 <?php // 上传目录 $uploadDir = __DIR__ . '/uploads/ 阅读全文
posted @ 2025-04-23 15:12 路闻man 阅读(34) 评论(0) 推荐(0)
摘要: 一、配置SSH 创建 SSH 密钥 打开终端。 生成 SSH 密钥: 使用以下命令生成一个新的 SSH 密钥对: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" -t rsa 指定密钥类型为 RSA。 -b 4096 指定密钥长度为 409 阅读全文
posted @ 2024-10-06 17:05 路闻man 阅读(350) 评论(0) 推荐(0)
摘要: aaPanel面板和宝塔面板都是同一家公司在运营,只是aaPanel面板主要服务于海外客户,宝塔面板服务于本地客户。通常如果使用的是海外的服务器部署web环境,建议使用aaPanel面板。宝塔面板是一款基于 Web 的管理服务器的面板软件,它可以帮助用户方便地管理服务器的各种功能。面板支持Linux 阅读全文
posted @ 2024-04-19 19:07 路闻man 阅读(3298) 评论(0) 推荐(1)
摘要: 最近测试发现网站的数据不正常,经过排查,是脚本没正常运行。查看错误日志,发现报SQLSTATE[HY000]: General error: 2006 MySQL server has gone away错误。 第一时间怀疑是服务器连接数太多,但是使用SHOW FULL PROCESSLIST查询, 阅读全文
posted @ 2023-10-30 11:29 路闻man 阅读(281) 评论(0) 推荐(0)
摘要: 一、安装xdebug 下载Xdebug,要下载与PHP对应版本的Xdebug xdebug官网下载地址:Xdebug: Downloads 这里下载的如果没有跟你的php对应,那么等待你的就是一堆报错 网站提供了一个自动分析系统对应的xdebug版本 ,网址是: Xdebug: Support — 阅读全文
posted @ 2023-09-02 11:56 路闻man 阅读(1809) 评论(0) 推荐(1)
摘要: 正序 list.sort(Comparator.comparing(VO::getSort)); 倒序 list.sort(Comparator.comparing(VO::getSort).reversed()); 阅读全文
posted @ 2021-12-08 13:47 路闻man 阅读(209) 评论(0) 推荐(0)
摘要: //单个对象复制,使用org.springframework.beans.BeanUtils BeanUtils.copyProperties(oldVO, newVO); //list List<NewListVO> newList = JSON.parseArray(JSON.toJSONStr 阅读全文
posted @ 2021-11-22 16:31 路闻man 阅读(142) 评论(0) 推荐(0)
摘要: import org.springframework.data.redis.core.StringRedisTemplate; @Autowired private StringRedisTemplate stringRedisTemplate; public static final String 阅读全文
posted @ 2021-11-03 17:24 路闻man 阅读(169) 评论(0) 推荐(0)
摘要: private static final String PACKAGE_CODE_KEY = "key:no:"; private static final Integer defaultExpireTime = 1; @Override public String generateNo(Strin 阅读全文
posted @ 2021-03-30 16:10 路闻man 阅读(551) 评论(0) 推荐(0)
摘要: 1.Service接口 public interface ExcelExportService { ResponseEntity<byte[]> exportExcel() throws IOException; } 2.Service接口实现类 package com.test.service.t 阅读全文
posted @ 2021-03-05 11:24 路闻man 阅读(420) 评论(0) 推荐(0)
摘要: 1。实现未知宽高元素的水平垂直居中,至少两种方法。 https://www.jianshu.com/p/9206cf198c33 2。vue有哪些生命周期有哪些阶段? 一共8个阶段1、beforeCreate(创建前)2、created(创建后)3、beforeMount(载入前)4、mounted 阅读全文
posted @ 2019-07-02 11:06 路闻man 阅读(776) 评论(0) 推荐(0)
摘要: 代码: 参考: PHP 使用GD库合成带二维码的海报步骤以及源码实现 将图片绘制到画布上:imagecopy() 阅读全文
posted @ 2019-04-18 19:40 路闻man 阅读(1157) 评论(0) 推荐(0)
摘要: function Descartes() { $t = func_get_args(); if (func_num_args() == 1) { return call_user_func_array(__FUNCTION__, $t[0]); } $a = array_shift($t); if (!is_array($a)) { ... 阅读全文
posted @ 2019-03-27 13:15 路闻man 阅读(539) 评论(0) 推荐(0)
摘要: 下载地址:https://github.com/hidu/pproxy 一、下载后解压 二、打开pproxy.exe 三、手机连接wifi,设置wifi,代理改为手动,输入代理主机ip,代理主机端口。 四、在电脑浏览器中输入localhost:8080打开pproxy页面。 在client框中输入手 阅读全文
posted @ 2019-03-26 15:27 路闻man 阅读(803) 评论(0) 推荐(0)
摘要: test.php测试文件 Des.php TripleDES.php 阅读全文
posted @ 2019-03-26 14:47 路闻man 阅读(1020) 评论(0) 推荐(0)
摘要: $dir = dirname(__FILE__); $files = scandir($dir); foreach($files as $name){ if($name == '.' || $name == '..'){ continue; } $title = preg_replace("/Controller.*?php/",'',$name);... 阅读全文
posted @ 2019-03-06 13:19 路闻man 阅读(934) 评论(0) 推荐(0)
摘要: JQuery: HTML5 required属性: 阅读全文
posted @ 2018-12-13 14:45 路闻man 阅读(1743) 评论(0) 推荐(0)
摘要: HTML: CSS: JS: PHP: 阅读全文
posted @ 2018-12-10 17:32 路闻man 阅读(352) 评论(2) 推荐(0)
摘要: 导入按钮 模态框 弹出模态框,选择文件,点击确定 PHP控制器 阅读全文
posted @ 2018-12-04 14:42 路闻man 阅读(567) 评论(0) 推荐(0)
more_horiz
keyboard_arrow_up dark_mode palette
选择主题
点击右上角即可分享
微信分享提示