亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Angular.js custom directives
天蓬老師
天蓬老師 2017-05-15 16:53:51
0
1
597

I just started learning Angular.js, please give me some advice!
The question is as follows:
{
sort:[
{id:1,text:"A"},
{id:2,text:"B"},
{id:3,text:"C"}
],
list:[
{id:1,text:"AA",sort:[1,2]},
{id:2,text:"BB",sort:[1,2]},
{id:3,text:"CC",sort:[2,2]}
]
}

After looping through the list, I hope to write an instruction to convert list.sort
The elements of list.sort correspond to sort.id
Ask for the method code!

天蓬老師
天蓬老師

歡迎選擇我的課程,讓我們一起見(jiàn)證您的進(jìn)步~~

reply all(1)
Peter_Zhu

1. Do you mean the string corresponding to list.sort數(shù)組里面的數(shù)字,轉(zhuǎn)換成sort.id? If so, you can take a look at a demo I wrote.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template