CSS显示几行文字,溢出的部分显示 ... 终极代码

.name {
font-size: 16px;
color: #000;
font-weight: 600;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-word;
overflow-wrap: break-word;
max-width: 100%;
min-width: 0;
}

EMFILE too many open files

电脑又抽风了,什么删了node_modules重新装,什么重启,什么加缓存都不好使 …

node:events:485
throw er; // Unhandled 'error' event
^

Error: EMFILE: too many open files, watch
at FSWatcher._handle.onchange (node:internal/fs/watchers:207:21)
Emitted 'error' event on NodeWatcher instance at:
at FSWatcher._checkedEmitError (/Users/net.cctv3.i/iCloud-mobile/node_modules/metro-file-map/src/watchers/NodeWatcher.js:134:12)
at FSWatcher.emit (node:events:507:28)
at FSWatcher._handle.onchange (node:internal/fs/watchers:213:12) {
errno: -24,
syscall: 'watch',
code: 'EMFILE',
filename: null
}

Node.js v23.7.0
阅读更多

npm install 指定版本的几个疑问

npm install 到底 install 的什么版本,@和^到底能不能锁住版本?

运行 npm install --force 时,安装的 react-native-reanimated 版本取决于 package.jsonpackage-lock.json 的情况:

  1. 如果 package.json 里是 "react-native-reanimated": "^3.4.2"
  • ^3.4.2 代表可以安装 3.x.x 但不会升级到 4.0.0 及以上。

  • 如果 package-lock.json 存在,并且锁定的是 3.4.2,则会安装 3.4.2

  • 如果 package-lock.json 不存在或被删除,则可能会安装 3.x.x 中的最新版本(比如 3.5.0,如果已经发布)。

阅读更多

MyBatis-Plus分页查询失效,查出来的是全量数据

最近还原数据的时候,查询的时候发现,传的currentPagepageSize不起作用,根本就没分页。返回来的hasNextPage什么都是错的 …

@CrossOrigin
@GetMapping ("/selectJiras.do")
public HashMap<String, Object> selectJiras(
HttpServletRequest request,
@RequestParam(value = "currentPage", defaultValue = "1") int currentPage,
@RequestParam(value = "pageSize", defaultValue = "10") int pageSize
) {
String userId = (String) request.getAttribute("userId");
CommonPage<Jira> pageData = jiraService.selectJirasByUserId(userId, currentPage, pageSize);
return StringUtils.response(200, pageData);
}
阅读更多

FFmpeg 常用命令汇总

指定截取时间点

最好把-ss-to放到-i之前,可以快速定位。

ffmpeg -ss 1:23:45 -to 0:12:34 -i input.m3u8 -c copy -start_at_zero output.mp4

-start_at_zero:确保时间戳从 0 开始,这在处理某些 .m3u8 文件时可以避免时间戳错乱问题。

阅读更多