上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页
摘要: Seven Deadly Sins: Gluttony, Greed, Sloth, Wrath, Pride, Lust, and Envy.七宗罪:暴食、贪婪、懒惰、暴怒、傲慢、色欲、妒忌。 阅读全文
posted @ 2019-02-13 08:38 苗士军 阅读(717) 评论(0) 推荐(0) 编辑
摘要: There is much opportunity for anyone willing to dedicate himself to his labors.付出努力的人才有机会出人头地。 阅读全文
posted @ 2019-02-12 08:48 苗士军 阅读(492) 评论(0) 推荐(0) 编辑
摘要: Kendo MVVM 数据绑定(十一) Value Value 绑定可以把 ViewModel 的某个属性绑定到 DOM 元素或某个 UI 组件的 Value 属性。当用户修改 DOM 元素或 UI 组件的值时,绑定的 ViewModel 的值也随之发生改名。同样,如果 ViewModel 的值发生 阅读全文
posted @ 2019-02-11 17:23 苗士军 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Kendo MVVM 数据绑定(十) Source Source 绑定可以把 ViewModel 的值和由 Kendo 模板定义的目标元素绑定,如果 ViewModel 的值发生变化,被绑定的目标元素也随之发生变化。模板由属性 data-template 指定,它的值为某个 script 定义的模板 阅读全文
posted @ 2019-02-11 17:13 苗士军 阅读(638) 评论(0) 推荐(0) 编辑
摘要: Kendo MVVM 数据绑定(九) Text Text 绑定可以使用 ViewModel 来设置 DOM 元素的文本属性,如果需要设置 input,textarea,或 select 的显示,需要使用 value 属性。 <span data-bind="text: name"></span> < 阅读全文
posted @ 2019-02-11 16:43 苗士军 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Kendo MVVM 数据绑定(八) Style Style 绑定可以通过 ViewModel 绑定到 DOM 元素 CSS 风格属性,例如: <span data-bind="style: {color: priceColor, fontWeight: priceFontWeight},text: 阅读全文
posted @ 2019-02-11 16:39 苗士军 阅读(270) 评论(0) 推荐(0) 编辑
摘要: Kendo MVVM 数据绑定(七) Invisible/Visible Invisible/Visible 绑定可以根据 ViewModel 的某个属性来显示/隐藏 DOM 元素。例如: <div id="view"> <div data-bind="invisible: isInvisible" 阅读全文
posted @ 2019-02-11 16:36 苗士军 阅读(261) 评论(0) 推荐(0) 编辑
摘要: Kendo MVVM 数据绑定(六) Html Html 绑定可以使用 ViewMod e 的属性来设置 DOM 元素的 innerHTML 属性。如果 ViewModel 的属性的数据类型不是字符串,比如(Text, Number 或者 Date),那么会调用 toString() 方法,将这些值 阅读全文
posted @ 2019-02-11 16:34 苗士军 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Kendo MVVM 数据绑定(五) Events 本篇和 Kendo MVVM 数据绑定(三) Click 类似,为事件绑定的一般形式。Events 绑定支持将 ViewModel 的方法绑定到 DOM 元素的事件处理(如鼠标事件)。例如: 实际上,click 绑定是 events 绑定的一个特例 阅读全文
posted @ 2019-02-11 16:30 苗士军 阅读(261) 评论(0) 推荐(0) 编辑
摘要: Kendo MVVM 数据绑定(四) Disabled/Enabled Disabled 和 Enabled 绑定可以根据 ViewModel 的某个属性值的 true,false 来设置 DOM 元素的 enabled 和 diabled 属性。Disabled/enabled 属性只适用于 in 阅读全文
posted @ 2019-02-11 16:19 苗士军 阅读(348) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页