标签:log render bsp mon color auto sde 简单应用 one
data={
name:"张三",
money:29
}
Hello {{name}}
You have just won {{money}} dollars!
data = { list: [ { title: "最新新闻1", autor: { name: "小小", date: "2017-6-23" }, isdel:true }, { title: "最新新闻1", autor: { name: "小小", date: "2017-6-23" }, isdel:false }, { title: "最新新闻1", isdel:true } ] } <script id="line" type="x-tmpl-mustache"> {{#list}} <div> <div>{{ title }}</div> {{#autor}} <div><span>{{name}}</span> <span>{{date}}</span></div> {{/autor}} </div> {{/list}} </script> var tpl=document.getEelementById("#line"); Mustache.parse(tpl); var rendered = Mustache.render(tpl, data); document.write(dd);
{{#isdel}}<div class="btn-lg btn-blue look">查看</div>{{/isdel}} if判断 {{^isdel}}<div class="btn-lg btn-blue deal">处理</div>{{/isdel}} else判读
标签:log render bsp mon color auto sde 简单应用 one
原文地址:http://www.cnblogs.com/zjy1017/p/7078393.html