目标是把每个元素中的null字符串替换成下个元素,最终得到一个替换好的字符串。相关代码//list数组如下varlist=["data:{null}","item:(payload.data.listmap(value0,index0)->{null})","gradeList:(value0.gradeListmap(value1,index1)->{null})","otherList:(value1.otherListmap(value2,index2)->{null})","anotherList:(value2.anotherListmap(value3,index3)->{null})"]所需结果是一个字符串"data:{item:(payload.data.listmap(value0,index0)->{gradeList:(value0.gradeListmap(value1,index1)->{otherList:(value1.otherListmap(value2,index2)->{anotherList:(value2.anotherListmap(value3,index3)->{null})})})})}"
呼啦一阵风
Cats萌萌
相关分类