我可以在Ditto占位符中使用变量吗?例如
[!Ditto? &tpl=`TPL-jc` &display=$myVar]而不是
[!Ditto? &tpl=`TPL-jc` &display=`10`]发布于 2013-05-09 02:02:18
您可以在Ditto占位符中使用另一个元素,例如
[!Ditto? &tpl=`TPL-jc` &display=`[+myVar+]`](这是myVar作为占位符)
[!Ditto? &tpl=`TPL-jc` &display=`[myVar]`](这是作为输出所需值的代码片段的myVar )
[!Ditto? &tpl=`TPL-jc` &display=`[*myVar*]`](这是作为模板变量的myVar )
https://stackoverflow.com/questions/16437692
复制相似问题