如下,我想把item对象的属性转移到quotation...
$scope.quotation = {};
$scope.save = function(item) {
for ( var key in item) {
console.log($scope.quotation);
}
}
黄舟2017-05-15 17:04:31
직접 사용하려면angular.copy(source, [destination]);
对比你的例子就是angular.copy(item, $scope. quotation);
여기에서 확인하세요.