现在数据量比以前大得多,而且有时系统看上去已经崩溃了,但事实上只是一个页面跳转到另一个页面花的时间较长而已。
There's a lot more data now and it sometimes seems the system has crashed but, in fact, it just takes ages to go from one screen to the next.
自动页面跳转的正确做法应该是使用服务器端的重定向。
Instead, automatic page forwarding should be done using server-side redirects.
如果我们运行上述代码并用任务管理器加以观察,当从这个页面跳转到一个空白页面的时候,我们并不能发现有内存溢出。
If you run the above code and use the Task Manager trick again, while navigating between the "leaking" page and a blank page, you won't notice a script leak.
应用推荐