Home > Q&A > body text
用
<p id="goodlist"> <p ng-repeat="good in goods">{{good}}</p> </p>
数据循环完后,用js获取这个p的高度,获取的数值一直不对。该怎么解决?
仅有的幸福2017-05-15 17:03:01
Put the code for getting p height inside $timeout() and try it
巴扎黑2017-05-15 17:03:01
http://stackoverflow.com/questions/13471129/ng-repeat-finish-event