Nested array based on splitted string

后端 未结 0 1592
梦如初夏
梦如初夏 2021-01-15 14:16

I have string like that:

const test = \'1.1.1.2\';

from this string I need create nested array:

{
  items :[{
    name: \'1\',         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题