研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >过程 >IProcedureModel >IProcedureModelinsertParameter
Procedures.IProcedureModel.insertParameter() 方法
将参数插入参数列表中。
要移动参数,请先将其删除,然后重新插入。
Signature:
insertParameter(parameterModel: IParameterModel, index: number): this;
参数
返回:
此
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-12。
[null,null,["最后更新时间 (UTC):2024-09-12。"],[[["The `insertParameter` method adds a parameter to a procedure's parameter list within Blockly's Procedures namespace."],["To reposition a parameter, it must first be removed with a separate operation and then reinserted using `insertParameter` at the desired index."],["The method requires an `IParameterModel` object representing the new parameter and an index specifying its position within the list."]]],[]]