angular.copy();
用法:对Object对象的深度拷贝
$scope.data = {name:'yanjinyun',age:'11'};
$scope.origData = angular.copy($scope.data);
angular.fromJson()
var json = '{"name":"liSi", "password":"321"}';
var jsonArr = '[{"name":"zhangSan", "password":"123"},{"name":"liSi", "password":"321"}]';
var obj = angular.fromJson(json);
console.log(obj);
var objArr = angular.fromJson(jsonArr);
console.log(objArr[0].name);
console.log(objArr[1].password);