封装的组件可以是第三方数据。
这就是封装的基本原理。
图11显示了一个由多个资产封装的服务。
You can put a variable there, and because it's not encapsulated in curly braces, as we just discussed, that essentially means it's accessible everywhere in that file.
你可以加入一个变量,因为它不是封装在花括号里,就像我们刚才讨论的,本质的意思是它可以在文件的所有地方,都可以被访问到。
And the last piece I want you to see here, and then I'll let you go is, notice now how that encapsulation, that binding things together has really helped me.
我想要的那么干净,最后一点要给大家讲的是,也就是下课前讲的一点,就是请注意这里是怎么封装的,也就是把东西绑定在一起。
There's a whole bunch of stuff at the top which is wrapping in an ugly way 'cause I've made my font so big.
顶部有一大堆封装好的东西,看起来很丑,因为我们的字体设置的很大。
应用推荐