34

次のような配列があります。

$scope.quotes =
    [
        {
            'quote': 'foo',
            'author': 'bar',
            'source': 'foobar',
            'first': 'slideout',
        },
        {
            ...
        },
    ]

最初にキー値を削除しようとしています:配列からのスライドアウト。このような:

delete $scope.quotes[0][first];

私も試しました:

delete $scope.quotes[0].first;
4

0 に答える 0