- 博客(2)
- 收藏
- 关注
原创 Angular2学习笔记——模板语法——内部指令1
Ngclass 单一类增删的最佳方式是使用css类绑定 The class binding is special 多个类增删则最好使用NgClass指令 This div is saveable and special 在组件方法中设置一个对象来管理各个css类的状态 setClasses() { let classes = { saveable: this.
2016-12-31 23:05:03
242
翻译 HTML attribute 与 DOM property 的对比
attribute 是由 HTML 定义的。property 是由 DOM (Document Object Model) 定义的。 少量 HTML attribute 和 property 之间有着 1:1 的映射,如id。 有些 HTML attribute 没有对应的 property,如colspan。 有些 DOM property 没有对应的 attr
2016-12-31 11:41:36
195
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人