for循环
<script type="text/html" id="userImg">
<ul class="showImg">
{{# for (var i=0,len=d.userImg.split(',');i<len.length;i++){}}
{{# if(len[i] != ''){}}
<li><img src="${url}{{ len[i]}}" alt="图片{{i}}"></li>
{{# }}}
{{# }}}
</ul>
</script>
userImg的数据是逗号分隔的字符串
if else
{{# if (d.gender=== 0) { }}
女
{{# } else if(d.gender=== 1) { }}
男
{{# } else { }}
死人妖
{{# } }}