0

我可以在同上占位符中使用变量吗?例如

[!Ditto? &tpl=`TPL-jc` &display=$myVar]

代替

[!Ditto? &tpl=`TPL-jc` &display=`10`]
4

1 回答 1

0

您可以在同上占位符内使用另一个元素,例如

[!Ditto? &tpl=`TPL-jc` &display=`[+myVar+]`]

(即 myVar 作为占位符)

[!Ditto? &tpl=`TPL-jc` &display=`[myVar]`]

(即 myVar 作为 Snippet 输出您想要的值)

[!Ditto? &tpl=`TPL-jc` &display=`[*myVar*]`]

(即 myVar 作为模板变量)

于 2013-05-08T18:02:18.047 回答