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.
我可以获取一个过程中声明的变量的值,然后在另一个过程中的 if 条件中使用它,请问如何?
您必须将该值作为输入参数传递给另一个过程,或者将该值存储在两个过程都可以访问的位置,例如如果两个过程都是同一类的成员,则存储在一个类成员中,或者存储在一个全局变量中。您的问题在细节上非常模糊,因此除此之外我无法提供太多答案。