@Component public class SysModuleLangDirective extends AbstractTemplateDirective
参数列表
moduleId
:模块id,结果返回object
SysModule
lang
:语言【zh:中文,en:英语,ja:日语】
<@sys.moduleLang moduleId='page' lang='zh'>${object}</@sys.moduleLang>
<script> $.getJSON('//sys.publicsys.com/api/directive/sys/moduleLang?moduleId=page&lang=zh', function(data){ console.log(data); }); </script>
限定符和类型 | 字段和说明 |
---|---|
private SysModuleLangService |
service |
ADVANCED, AUTH_TOKEN, AUTH_USER_ID, siteComponent
log
构造器和说明 |
---|
SysModuleLangDirective() |
限定符和类型 | 方法和说明 |
---|---|
void |
execute(RenderHandler handler) |
execute, expose, getAdvanced, getApp, getSite, getUserId, needAppToken, needUserToken, supportAdvanced
execute, getName, getNamespace, getShortName, httpEnabled, setName, setNamespace, setShortName
private SysModuleLangService service
public void execute(RenderHandler handler) throws java.io.IOException, freemarker.template.TemplateException
java.io.IOException
freemarker.template.TemplateException