Skip to content
eprom2006 edited this page Oct 14, 2018 · 12 revisions

基本语法

渲染器是一个jQuery扩展,语法如下:

$(selector).render({
     data:data,
     template:template
})

按照template依据data渲染到selector指定的元素中。

template

e

指定渲染出的DOM element的元素名

t

渲染到元素中的内容的模板。

datapath

数据路径

a

设置属性

style

设置样式

options

生成options

selected

指定selected值

点击事件

绑定事件侦听器

Clone this wiki locally