-
从网页复制文本粘贴到思源后出现多余空格
2024-04-12 23:28有点怪,网页打不开
重定向到了 https://golang.google.com/doc/tutorial/getting-started?gl=CN&hl=zh-CN#code ,然后无法访问
-
文档树能不能加入 shift+click 键多选的功能?
2024-04-11 22:21想起来了,shift+click 已经被使用了所以没法改。
目前可以 Ctrl+Click 选中文档,然后长按 Shift+↑/↓ 快速扩选。
-
v3.0.9 数据库获取列数据的问题
2024-04-11 19:30试试这个,有用请采纳:
.action{$readState := index . "状态"} .action{if eq $readState "想读"} 🟡未读 .action{else} .action{$endTime := index . "结束日期"} .action{if empty $endTime}.action{/* 如果结束日期为空 */} .action{$nowdate := (now | date "2006-01-02")}.action{/* 当前日期 */} .action{$nowdate = toDate "2006-01-02" $nowdate | date "2006-01-02"} .action{$deadline := (index . "截止日期" | date "2006-01-02")} .action{$deadline = toDate "2006-01-02" $deadline | date "2006-01-02"} .action{if le $nowdate $deadline}.action{/* 如果当前日期小于截止日期,就计算开始日期到当前日期 */} .action{$nowdate := (now | date "2006-01-02")} .action{$nowdate = toDate "2006-01-02" $nowdate} .action{$startTime := (index . "开始日期" | date "2006-01-02")} .action{$startTime = toDate "2006-01-02" $startTime} .action{$current :=(div ($nowdate.Sub $startTime).Hours 24)} .action{$current} 天 .action{else if gt $nowdate $deadline}.action{/* 如果当前日期大于等于截止日期,就计算超时 */} .action{$nowdate := (now | date "2006-01-02")} .action{$nowdate = toDate "2006-01-02" $nowdate} .action{$deadline := (index . "截止日期" | date "2006-01-02")} .action{$deadline = toDate "2006-01-02" $deadline} .action{$delta :=(div ($nowdate.Sub $deadline).Hours 24)} 🔴超时 .action{$delta} 天 .action{end} .action{else}.action{/* 如果有结束日期,就计算开始日期到结束日期 */} .action{$endTime := (index . "结束日期" | date "2006-01-02")} .action{$endTime = toDate "2006-01-02" $endTime} .action{$startTime := (index . "开始日期" | date "2006-01-02")} .action{$startTime = toDate "2006-01-02" $startTime} .action{$current :=(div ($endTime.Sub $startTime).Hours 24)} .action{$current} 天 .action{end} .action{end}