0
如果我有,我在我的网页指定一个变量:从页面传递值组件玉兰
<#assign myVar = "testing">
<@cms.area name="area-name"/>
而且我希望能够使用该变量在嵌套区域或组件,如何我是否将它传递给应用程序?
<#list components as component>
${myVar}
</#list>
如果我有,我在我的网页指定一个变量:从页面传递值组件玉兰
<#assign myVar = "testing">
<@cms.area name="area-name"/>
而且我希望能够使用该变量在嵌套区域或组件,如何我是否将它传递给应用程序?
<#list components as component>
${myVar}
</#list>
[@ cms.area名= “主” contextAttributes = { “myVar的”:myVar的} /]
$ {} ctx.myVar
享受! :)
谢谢.................... –