闭包 拿一个可以记录函数调用次数的来进行理解,如下方 let n = 0 function numUp(){ n++ console.log(n) } const fn = numUp() fn() // n=1fn() // n=2n+=10fn() // n=13 很明显可以发现,a56爆大奖在线娱乐们定义了一个 Read More
posted @ 2022-09-21 09:12 不愿意学习的白痴 Views(16) Comments(0) Diggs(0) Edit