islxyqwe's recent timeline updates
islxyqwe

islxyqwe

V2EX member #303652, joined on 2018-03-27 10:32:50 +08:00
islxyqwe's recent replies
Feb 28, 2023
Replied to a topic by cjlalalala 程序员 为什么 nodejs 的异步事件可以同时执行
Date.now 只到 1ms ,你用 performance.now 再试试?
虽然实际上函数也可以闭包而包含状态,
但是预期中,类包含状态,函数不包含。
而类的方法可能会修改其自己的状态。
May 10, 2021
Replied to a topic by Overfill3641 Windows 已经无法阻止 Windows10 更新了吗?
我还记得当年冲击波,因为没自动更新,最后联网就自动重启,重装不联网还能用,pppoe 拨号到公网就开始自动重启
May 10, 2021
Replied to a topic by Overfill3641 Windows 已经无法阻止 Windows10 更新了吗?
对攻击有点常识吧,乱下东西中病毒 - 系统怎么更新都保不了你
系统不更新有漏洞 - 什么都没做,联网就被攻击
看你记得东西是否对大脑友好了,就用堆排序举例
你记二叉堆算法 实现不短 规则不少 几天就忘
你记左偏堆算法 实现 10 行( js ) 规则简单 根本不会忘
f=>(x=>f(v=>x(x)(v)))(x=>f(v=>x(x)(v)))
Mar 5, 2021
Replied to a topic by feng32 程序员 请教 useAxios (React Hooks) 的一个使用问题
onOk: () => {refetch().then(resp=>console.log(resp.data), error => console.log(error));}
或者
useEffect(()=>{
if (error) {
console.log(error);
}
else {
console.log(data);
}
},[data,error])
/**...*/
onOk: refetch
楼上就属于不懂 hooks 了()
Feb 20, 2021
Replied to a topic by wxsm 程序员 useEffect 为什么不能支持 async function?
useEffect(() => {
loadContent().then(()=>{/** do something */});
}, []);
Dec 22, 2020
Replied to a topic by Flands 程序员 关于 js 中使用 switch (true) 和 if else
this.nextBtnIsOk = (this.status === 0 && data.type === 1) ||
((this.status === 2 || this.status === 3) && data.status === 2)
那你就作为 text 存 JSON 呗
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3483 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 10:55 · PVG 18:55 · LAX 03:55 · JFK 06:55
♥ Do have faith in what you're doing.