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.
咖啡脚本“扩展”和“@extend”有什么区别?Extend 用于继承,@extend 用于混合,但你只能得到一个可以混合的对象?
@extend 不是为了继承,它是关于一个 mixin - 允许从另一个对象添加成员而无需继承