代码片段
$http({ headers:{ token:window.localStorage.getItem("token") }, url:"/sofn-ales-web/dailyEnforceLaw/getDailyEnforceLawById", method:"post", data:{id:data} }).success(function(data){ $scope.reCord = data.dailyEnforceLaw;
HTML页面
<td title="{{reCord.enforceLawResult}}"> <span ng-bind="reCord.enforceLawResult.substr(0,10)"></span> </td>