jsrender
<title></title>
<style>
#photos {
width: 600px;
border: 1px solid red;
border-collapse: collapse;
}
#photos td, #photos th {
border: 1px solid red;
}
</style>
<link href="css/jquery.fancybox.css" rel="stylesheet" />
<script src="../Scripts/jquery-2.1.1.js"></script>
<script src="script/jsrender.js"></script>
<script src="script/jquery.fancybox.js"></script>
<script src="script/json2.js"></script>
<script id="tmpl" type="text/x-jsrender">
<table id='photos' cellspacing='0'>
<tr><th>序号</th><th>标题</th><th>图标</th><th>点击次数</th><th>支持</th><th>反对</th><th>时间</th><th>操作</th></tr>
{{for #data.p}}
<tr>
<td>{{: #index + 1}}</td>
<td>{{:PTitle}}</td>
<td>{{:PUrl}}</td>
<td>{{:PClicks}}</td>
<td>{{:PUp}}</td>
<td>{{:PDown}}</td>
<td>{{:~cvt(PTime)}}</td>
<td><a class="edit" photoid="{{:PId}}" href="javascript:void(0)">编辑</a> <a class="del" photoid="{{:PId}}" href="javascript:void(0)">删除</a></td>
</tr>
{{/for}}
</table>
</script>
<script id="tmplddl" type="text/x-jsrender">
<option value="{{:TypeId}}">{{:TypeName}}</option>
</script>