<span class="zfcg-jg">{{dealGoodsPrice(info.realPrice)}}</span> 处理商品的价格,这时候应该是数据还没有填充,所以页面会先出现null,然后才出现数据。怎么解决这个问题,是不是怎么可以让他先不显示,一定不能显示null啊。
业精于勤,荒于嬉;行成于思,毁于随。
<span class="zfcg-jg" ng-bind="dealGoodsPrice(info.realPrice)"></span>
When using ng-bind, it will be defaulted to the tag attribute by the browser, so nothing will be displayed.
Recommended use:
<span ng-bind="user.name"></span>
The effect is the same as {{}}, but using ng-bind, the data will not be displayed on the page until it is successfully loaded.
When using ng-bind, it will be defaulted to the tag attribute by the browser, so nothing will be displayed.
Recommended use:
The effect is the same as {{}}, but using ng-bind, the data will not be displayed on the page until it is successfully loaded.