Giter Club home page Giter Club logo

Comments (2)

FASTSHIFT avatar FASTSHIFT commented on May 21, 2024

cache的意思是当此页面退出时,不删除页面,而且将页面隐藏。当页面重新进入时,页面可以还原之前退出时的状态。

cache功能是可配置的:

  • SetCustomCacheEnable() 设置自定义cache使能 (默认关闭),用户手动管理页面的生命周期,页面不会被调度器自动删除。
  • SetCustomAutoCacheEnable() 设置自动cache使能 (默认打开),由调度器自动管理页面的生命周期:当push页面时,上一个页面的cache被打开;当页面pop时,被退出页面cache失能,页面被彻底删除。

注意,这两个函数推荐在onCustomAttrConfig()里进行调用,cache有关配置的请求在这里被同步到调度器中,不要直接访问cache相关标志位,可能会导致内存泄漏。

from x-track.

priceee avatar priceee commented on May 21, 2024

谢谢大佬!

from x-track.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.