Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 ColdFusion 中使用 ColdBox 框架。我想知道如何在函数中使用静态变量。任何人都可以解释如何或建议“静态”概念的替代方案。
使用组件的元数据,我们可以模仿静态变量的行为: