阅读背景:

使用JQuery将分隔的字符串转换为分层JSON

来源:互联网 

I have an array of strings that describe the parent/child relationship by being delimited with dashes. So, if Bob's boss was Jim and Jim's boss was Fred, Bob's entry in the array would be "Fred-Jim-Bob" and Jim's entry would be "Fred-Jim." I don't have the ability to change the way the data is coming in so I was looking for help as far as the best way of turning these values into JSON similar to this:I have an array of strings that describe the pa




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: