jingrui

jingrui

V2EX 第 204698 号会员,加入于 2016-12-06 18:54:05 +08:00
今日活跃度排名 847
根据 jingrui 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
jingrui 最近回复了
编写代码、GIT 版本控制、等等在 idea
问问题+ai 写代码,切到 cursor

没办法实在不习惯 cursor ,把 cursor 安装了 idea 主题+idea 快捷键,稍微用的还行。
5 天前
回复了 daochenmeng520 创建的主题 硬件 想买个中手抓握鼠标 500 元内谁最强
M720 家里 3 个,公司 2 个;大小重量价格合适
iOS 开发,你不应该也不能对 xcode 有意见
个人认为:25 年 7 月、26 年 11 月。
很多 javaer 只知道参数是 object ,不会处理 map 对象,菜
25 天前
回复了 w21020 创建的主题 北京 北京换房请教
加杠杆能接收 降价 20% 就可以冲。
7 成是失败,你是不是太乐观了
39 天前
回复了 letterLim 创建的主题 React 请教一个 react native FlatList 的问题
我们还是用的 FlashList ,滚动到指定消息 很难优化


const firstScrollRef = useRef(false);

function scrollToMsg(msgID){
let index = viewMessages.findIndex((value)=>value?.msgID === msgID)
if (index <= 0) index = 1;
console.log('scrollToMsg', index, msgID, viewMessages.length);
flatListRef.current.scrollToIndex({ index:index-1, animated: true });
}

const scrollToBottom = useCallback(
debounce(() => {
if (flatListRef.current) {
console.log('scrollToBottom', firstScrollRef.current, from, msgID)
IMSdk.readConversation(uid)
if (!firstScrollRef.current) {
if (from === 'history' && msgID) {
scrollToMsg(msgID)
} else {
flatListRef.current.scrollToEnd({ animated: true });
}
firstScrollRef.current = true
} else {
flatListRef.current.scrollToEnd({ animated: true });
}
}
}, 200), // 延迟时间可以根据需要调整
[from, msgID]
);
40 天前
回复了 Leoking222 创建的主题 macOS todoList 推荐
notion ,这个任务记录模板,好使的很
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2609 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 11:02 · PVG 19:02 · LAX 04:02 · JFK 07:02
Developed with CodeLauncher
♥ Do have faith in what you're doing.