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.
我们正在为 OOP 使用 Prototype.js 框架。我知道您可以轻松地进行类继承。您可以轻松地进行回调。那么,有没有办法实现一个面向对象的“接口”?或者,我们必须保留类继承吗?