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.
我的应用程序有一个广泛的控制器。在某些情况下,代码有几行不同。我的想法是,在类中编写处理程序并继承行为以减少代码。并在事件触发时在控制器中调用此方法。这是可能的?。谢谢 !