Is the garbage collector called after window.location redirection?
问题 say I have the javascript: /*getAttribute is mootools method for retrieving a named attribute*/ var companyNumber = button.getAttribute('data-company-number'); var payPoint = button.getAttribute('data-pay-point'); window.location = '/Payslip/ListPayslips/?companyNumber=' + companyNumber + '&payPoint=' + payPoint delete payPoint;//is this necessary? delete companyNumber;//is this necessary? Would the delete lines be necessary? And would they even get called? 回答1: To answer the first question,