Happy New year, everyone. How many codes do you want to eat?
setTimeout(test2, 3000)
function test2 () {
var leak = []
for (var i = 0; i < 2000000; iPP) {
leak.push(new Date())
} // IE 267M test1 null
leak = null // null
}
setTimeout(test3, 3000)
function test3 () {
var leak = []
for (var i = 0; i < 10000000; iPP) { //
leak.push(" new Date() ")
} // IE 40M push 124M 41.7M
}
setTimeout(test4, 3000)
function test4 () {
for (var i = 0; i < 10000000; iPP) {
var a = new Date()
} // 40~50M new Date()
}