84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
angularjs中怎么获取自定标签里面class里面的css属性
人生最曼妙的风景,竟是内心的淡定与从容!
Two choices, one is
document.getElementsBy
Id("your_id"); Then peel the garlic, of course getElementsByClassName belongs to the same solution as this.
The second one, if it is in the directive, it is also possible
angular.element(this)
Then peel the garlic...
This is not possible. I found a way. You can have a scope in the custom tag. Use $rootScope to get the attributes and then share them, so that they can be used outside the custom tag.
Two choices, one is
Id("your_id");
Then peel the garlic, of course getElementsByClassName belongs to the same solution as this.
The second one, if it is in the directive, it is also possible
Then peel the garlic...
This is not possible. I found a way. You can have a scope in the custom tag. Use $rootScope to get the attributes and then share them, so that they can be used outside the custom tag.