摘要:
使用Mustache的好处是:可以把一些反复用到的html部分定义成Mustache模版,以便多次使用。使用Mustache的大致步骤是: →从后台拿到json数据 →获取前台页面预先定义好Mustache模版(占位符必须和从后台传来的的字段或属性名一致) →遍历每行的json数据,使用Mustache.render(template, row)方法把json数据填充到对应的占... 阅读全文
posted @ 2014-05-22 16:00
Darren Ji
阅读(947)
评论(0)
推荐(1)
浙公网安备 33010602011771号