mirror of
https://github.com/LingChair/LingChair-V0.git
synced 2025-12-08 01:55:50 +08:00
feat: 多标签页聊天(实验性)
This commit is contained in:
@@ -42,6 +42,16 @@ const checkEmpty = (i) => {
|
||||
return (i == null) || ("" === i) || (0 === i)
|
||||
}
|
||||
|
||||
// AI的力量太强了
|
||||
function getOffsetTop(parent, child) {
|
||||
let top = 0
|
||||
while (child && child !== parent) {
|
||||
top += child.offsetTop
|
||||
child = child.offsetParent
|
||||
}
|
||||
return top
|
||||
}
|
||||
|
||||
function escapeHTML(str) {
|
||||
return str.replace(/[<>&"']/g, function (match) {
|
||||
switch (match) {
|
||||
|
||||
Reference in New Issue
Block a user