关于ng-bind和{{}}绑定对象,显示不一致的问题,搜索说{{}}页面没有渲染完就显示了,ng-bind是页面渲染完以后才显示的绑定内容的,
应该是内部实现不一样。
http://stackoverflow.com/questions/25741586/difference-between-ng-bind-and-interpolation-in-angular
From http://stackoverflow.com/a/19744728/987185 :
Depending on whether you use
{{ ... }}
orng-bind
syntax, the.toJSON
and the.toString
function on your object will be called to determine its representation.
ng-bind可以加上过滤实现
<span ng-bind="person | json"></span>
恩,谢谢的你回复