1. This is the
returned by the background.var b = [{
channelCategoryName: "",
channelDetailName: [
"B",
"C"
]},
{
channelCategoryName: "",
channelDetailName: [
""
]
}]
2. This is what I need
var b = [{
value:"",
label:"",
children:[{
value:"B",
label:"B"
},{
value:"C",
label:"C"
}]
},{
value:"",
label:"",
children:[{
value:"",
label:""
}]
}]
turn an into b and ask for advice.