for example, the value I finally want to get is a.b.c.d.e
, when the data structure is fixed:
-
Is there a more elegant way to write
- except for judging step by step,
a & a.b & & a.b.c & & a.b.c.d
? - if one of these levels is an array, for example, I need
a & A.B & & a.b.c & & a.b.c [0]
in this case