【发布时间】:2017-12-07 18:16:43
【问题描述】:
我正在尝试使用 Sails.js 创建编辑功能和更新功能,但单击编辑按钮后出现错误。
<html>
<body>
<table>
<thead>
<th>id</th>
<th>name</th>
</thead>
<tbody>
<% for(var i=0; i<categories.length; i++){ %>
<tr>
<td> <%= categories[i].id %> </td>
<td> <%= categories[i].name %> </td>
</tr>
<a href="category/edit?id=<%= categories[i].id %>">Edit</a> //when click on this it should be appeared to edit page. but instead I got an error
<% } %>
</tbody>
</table>
</body>
</html>
很抱歉将其发布为图片,我不知道该怎么办。
【问题讨论】:
标签: javascript sails.js ejs