为同一个ejs模板绑定不同的数据
来源:互联网 发布:广电网络与电信网络 编辑:程序博客网 时间:2024/05/22 12:22
http://blog.csdn.net/cdnight/article/details/50887191
<% include ../moudle4/index.ejs%>
<% include ../moudle4/index.ejs%>
<% include ../moudle4/index.ejs%>
需求: 在一个页面中,一个同类型的模块出现多次调用,那么问题来了, 如何 让每次调用的模板渲染出不同的数据呢?
阅读全文