In this case I applied a mix of the Principle of core content and the Principle of readability to the decision to put the value in content and the units in an attribute.
在这个例子中,我结合使用了 核心内容原则 和 可读性原则,决定把数量作为元素内容而把度量单位放在属性中。
You can focus on your core business requirements and mix in the additional functionality you need - searching, authentication, alternate presentation layers, and more - from external resources.
这样您就可以将更多的精力用于核心业务需求,在需要的时候,从外部资源加入所需的额外功能—查询、认证、备用表示层等。
You can use mix-ins (more below, under Run-time binding) to add core capabilities to existing classes.
您可以使用mix - in(后面运行时绑定会讲到)来添加核心功能到已有的类中。
应用推荐