贾政的头像 ID: 88756108572

贾政

HelloWorld 社区成员

1619215918

文章3
个人网站0
加入社区2025

函数节流和函数防抖

函数节流一个函数执行一次后,只有大于设定的执行周期才会执行第二次.<pre<codefunctionthrottle(fn,delay) {// 记录上一次函数触发的时间varlastTime0returnfunction() {

Java 线程池会自动关闭吗?

首先我们需要了解线程池在什么情况下会自动关闭。ThreadPoolExecutor类(这是我们最常用的线程池实现类)的源码注释中有这么一句话:<blockquoteApoolthatisnolongerreferencedinaprogramandhasno

Nodejs学习记录:express

npmexpress(https://link.segmentfault.com/?encBHbAxyePBCJSX7%2Bxt3oRKQ%3D%3D.Z%2B12yLDnacESPWsggUXAhSZEF2UkYTwSHBAlfw0IBVisWg95yscNXom5V3Xe3uPO)