类是一种增强页面可管理性的出色方法,因为只需修改样式表,就可以对站点的外观进行全面修改。
Classes are an excellent way to increase the maintainability of Web pages, because wholesale changes can be made to the look and feel of a site with just a change to the stylesheet.
这样增加的耦合会使类的维护和增强更为困难;因此,应该避免这种做法。
This increased coupling makes your classes more difficult to maintain and enhance; therefore, it should be avoided.
增强某个类的方法有多种(请参见参考资料)。
应用推荐