0
我有下面的代碼如何申請Angular.Copy
var myctrl = function($scope) {
$scope.items = [{value: 1, name:'Nitin'},{value: 2, name:'Vikas'},{value: 3, name:'xxx'}];
$scope.itemEdit1 = $scope.items;
$scope.itemEdit2 = $scope.items.name;
};
我只想複製命名到itemEdit2
所以基本上你想複製所有的名字值? – nXqd