简体   繁体   中英

How do I get a Part in the sirius-web scripting interface?

使用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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM