0
我使用Pug创建链接。未将数据嵌入链接
each evnt in evnts
.row.list-group
.col-xs-12.list-group-item
h4
a(href='/details/#{evnt._id}') #{evnt.name}
small
p #{evnt.dateTime}
p #{evnt._id}
页面呈现正确,并显示正确的数据。
让我们假设#{} evnt._id是1234
当我点击链接,我重定向到/details/#{evnt._id}而不是/细节/ 1234。
这是为什么?