JSP中使用 jquery.tmpl.js问题

由于jsp中的EL表达式语法和jquery.tmpl十分类似,,所以单纯的使用${name},,数据是渲染不上tmpl的.

 

SO.. 要加上转义: 
<script type="text/x-jquery-tmpl" id="deeptemplate">
       <li>${'${'}amount}</li>或者 \${amount}  (推荐)酷
       <li>${'${'}borrowId}</li>  或者 \${borrowId}
</script>

你可能感兴趣的:(jsp,数据渲染,jquery.tmpl.js)