angular.js - How to find parent node from object property in $scope
伊谢尔伦
伊谢尔伦 2017-05-15 17:02:29
0
1
685

For example:
$scope.a=
{

a:{a1:1,a2:2,a3:3},
b:{b1:1,b2:2,b3:3},

}
The function obtains a3 from the parameter. How to access $scope.a

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
我想大声告诉你

This is not possible, attributes are not unique.

$scope.a = {
    a: {a1:1, a2:2, a3:3}
    b: {a1:1, a2:2, a3:3}
}

$scope.b = {
    a: {a1:1, a2:2, a3:3}
    b: {a1:1, a2:2, a3:3}
}

So for the above code, what can we get with a3=3?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template