angular.js - ng-repeat for option tags.
phpcn_u1582
phpcn_u1582 2017-05-15 16:57:39
0
3
577

The code is like this:

The page displays like this:

The console view element is like this:


One more loop.
What is the reason for this cycle?
Is there any good solution?
angular version 1.4.5

phpcn_u1582
phpcn_u1582

reply all(3)
迷茫

Solved it myself:
Added:

<option value="">选择</option>
習慣沉默

Why use ng-repeate when you can use ng-options. If you use ng-options, remember to write a default please select the item.

淡淡烟草味

When you get the data for the first time, can you display all the data?

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