【发布时间】:2017-04-15 06:16:42
【问题描述】:
这是使用 ejs 的代码:
<iframe width="660" height="371" src="<%= revive.reviveVideo %>"></iframe>
pug 中的 this 相当于什么?试过了,但没有用:
iframe(width='660', height='371', src='#{revive.reviveVideo}')
如果我将变量更改为实际路径,它就可以正常工作...这是变量语法的问题...
【问题讨论】: