angular.js - ng-options blind sorting problem
黄舟
黄舟 2017-05-15 16:49:44
0
2
805

Object {0: 0, 1: 2, 2: 4, 3: 6, 4: 8, 5: 11, 6: 13, 7: 15, 8: 17, 9: 19, 10: 22, 11 : 24, 12: 26, 13: 28, 14: 30, 15: 33, 16: 35, 17: 37, 18: 39, 19: 41, 20: 44, 21: 46, 22: 48, 23: 50, 24: 52, 25: 55, 26: 57}

Results
The value of the traversed option is

1
10
100
101
...
11
110

I didn’t set the sorting. .

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
给我你的怀抱

Convert your object into an array, http://jsfiddle.net/gzozycj8/2/

曾经蜡笔没有小新

Object has no order. Only arrays have order.

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