开发者

Put Jade local variable in tag attribute

I want to put Jade variable in tag attribute but it isn't evaluated.

a(href="/logou开发者_开发百科t/#{user.name}")


You could use:

a(href='/logout/'+user.name)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜