We can also pass variables to actions in the form of parameters, where parameter names and values appear in pairs.
The schematic code is as follows.
//Pass parameters in action Action action = ...; action.run(actionContext, "p1", p1Value, "p2", p2Value...); //Passing parameters when executing object behavior Thing thing = ...; thing.doAction("run", actionContext, "p1", p1Value, "p2", p2Value...)
Copyright © 2007-2019 XWorker.org 版权所有 沪ICP备08000575号