使用sirius-web(sirius框架的一部分)的系统脚本接口(“系统/脚本”)时,可以使用哪种方法来获取要在我的脚本中使用的特定注册零件?
Create an object implementing sirius.web.templates.GlobalContextExtender
and add the object by extending the collectScripting Method:
globalParameterCollector.accept("objectNameToAccess", objectToAdd);
Can be accessed from within the scripting by calling:
@objectNameToAccess.methodName()
可以扩展DefaultGlobalContextExtender
并将Injector
的实例放在上下文中...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.