我在angularJS中很新,我有一个问题。发送两个列表之间的值
这是一个小提琴恢复我的问题:http://jsfiddle.net/ShengTi/RmFYv/
一切都很好,如果我发送的第一个值,并继续秩序。
dptRecep :
[{"text":"Aube","pos":"1"},{"text":"Marne","pos":"2"},{"text":"Haute marne","pos":"3"},{"text":"Bouches du rhone","pos":"4"},{"text":"Aisne","pos":"5"},{"text":"Ain","pos":"6"},{"text":"Aude","pos":"7"}]
但是,如果我发送第一个,然后第三个等..我的价值混乱我的数组。
dptRecep :
[{"text":"Aube","pos":"1"},{"text":"Bouches du rhone","pos":"4"},{"text":"Marne","pos":"2"},{"text":"Haute marne","pos":"3"},{"text":"Aude","pos":"7"}]
可能是我应该插入我的价值之间的其他......?
不错!它完美的作品! 我会看到这段代码来理解它。非常感谢 ! –