angular.js - An issue with loops in angular directives
怪我咯2017-05-15 17:04:57
0
1
542
There is a variable a=30; How to loop out the thirty numbers from 1 to 30 in the angular html command? It is not the output of an array, it is a loop of numbers with a step size of 1
I can’t think of a better way. To operate an array with ng-repeat, you must create an array
html
js
https://jsfiddle.net/hjzheng/...