我可以在Ditto占位符内使用变量吗?例如
[!Ditto? &tpl=`TPL-jc` &display=$myVar]
代替
[!Ditto? &tpl=`TPL-jc` &display=`10`]
您可以在Ditto占位符中使用另一个元素,例如
[!Ditto? &tpl=`TPL-jc` &display=`[+myVar+]`]
(这是myVar作为占位符)
[!Ditto? &tpl=`TPL-jc` &display=`[myVar]`]
(这是myVar作为一个片段,输出你想要的值)
[!Ditto? &tpl=`TPL-jc` &display=`[*myVar*]`]
(即myVar作为模板变量)