Closure, if the internal variables of the parent function are not called, will the internal variables of the parent function be recycled?

clipboard.png

closure, which leads to memory leakage due to the fact that the internal variables of the parent function cannot be reclaimed by the recycling mechanism;
problem,




Mar.04,2021

you should know about the garbage collection mechanism of Javascript .


a will be recycled if there are no referenced variables, but b will not. Please refer to http://www.cnblogs.com/antine.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34917-e473.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34917-e473.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?