如何用angular動態輸出$scope.total個數的標籤。 當$scope.total = 10時,有10個p標籤當$scope.total = 20時,有20個p標籤
闭关修行中......
可以參考這個問題,自己產生一個陣列供ng-repeat使用
angular提供了 ng-repeat,直接用就可以了
ng-repeat
可以參考這個問題,自己產生一個陣列供ng-repeat使用
這不就是total個p嗎
angular提供了
ng-repeat
,直接用就可以了