angular.js - 用reactjs或者angularjs的router做单页面的APP,会不会使页面占用内存过大?
滿天的星座
滿天的星座 2017-05-15 16:57:04
0
3
589

页面转场后,前一页面的内存是如何销毁的,会不会对性能产生影响?

滿天的星座
滿天的星座

reply all(3)
小葫芦

You can configure the cache number of pages. When the maximum cache number is reached, the earliest page will be moved out of the memory. When rolling back, it will be judged whether it exists in the cache, and then it will be determined whether to read the cache or the server.

巴扎黑

Basically don’t worry. Generally speaking, if you follow the official recommended writing method, you don’t need to worry about memory release. The framework will take care of these things. If you want to know more, you can take a look at closures and the automatic destruction mechanism of js.

左手右手慢动作

Yes, it mainly depends on how you write the code

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template