【发布时间】:2021-06-05 04:30:46
【问题描述】:
我有这个pug mixin。我的问题是如何将1 替换为 id 参数?
mixin workExperience(id, position, company, dateFrom, dateTo)
section#work
section.work-item
input.toggle-item(id='work-item-1' type='checkbox' checked='checked')
label(for='work-item-1')
header
.position= position
.company= company
.date
span.startDate= dateFrom
span.endDate= dateTo
【问题讨论】:
标签: pug