You might define a custom class like that in Listing 8.
可以定义一个如清单8所示的自定义类。
Create a custom class with the same name as the enumeration name.
创建一个定制类,使其名称与枚举名称相同。
So, you'll write a custom class called AppInjector, as shown below.
因此,要编写一个名为AppInjector的自定义类,如下面所示。
You then flexibly apply the custom class to any available HTML element.
然后,就可以灵活地把这个定制类应用于任何可用的HTML元素。
使用自定义的类。
使用自定义的类。
应用推荐