万维网联盟(W3C)的许多推荐标准都倡导使名称空间模块化。
Many recommended standards of the World Wide Web Consortium (W3C) promote namespaces for modularity.
这个例子仍然使用了“注入”,这对普通情况来说有些多余;也就是说,我们将增强的类放回到模块名称空间中的一个特定名称中。
This example still uses the "injection" which is somewhat superfluous to the general case; i.e. we put the enhanced class back into a specific name in the module namespace.
如果模块没有目标名称空间声明,这种方法常常被称为“变色龙”模式设计范式。
When modules have no target namespace declaration, this is often referred to as a chameleon schema design pattern.
应用推荐