主题 : 这个在哪取值 |
级别: 童生
|
3# 发表于:2018-08-01 11:41:01 IP:110.254.*.*
public static CmsSite getSite(Environment env)
throws TemplateModelException { TemplateModel model = env.getGlobalVariable(SITE); if (model instanceof AdapterTemplateModel) { return (CmsSite) ((AdapterTemplateModel) model) .getAdaptedObject(CmsSite.class); } else { throw new TemplateModelException("'" + SITE + "' not found in DataModel"); } } |
||
---|---|---|---|
级别: 论坛管理员
|
5# 发表于:2018-08-01 11:42:39 IP:115.233.*.*
您好 我们论坛是不支持代码解析的 一般是已有的的方法的话是可以的点击进去的 您可以试试
|
||
---|---|---|---|
1
共1页