语法
Replacer.ReplaceValue(value as any, old as any, new as any) as any
关于
将原始 value 中的 old 值替换为 new 值。 此替换器函数可用于 List.ReplaceValue 和 Table.ReplaceValue 中。
示例 1
使用值 10 替换值 11。
使用情况
Replacer.ReplaceValue(11, 11, 10)
输出
10
Replacer.ReplaceValue(value as any, old as any, new as any) as any
将原始 value 中的 old 值替换为 new 值。 此替换器函数可用于 List.ReplaceValue 和 Table.ReplaceValue 中。
使用值 10 替换值 11。
使用情况
Replacer.ReplaceValue(11, 11, 10)
输出
10