AngularJS DOM selector

后端 未结 2 469
北荒
北荒 2020-12-09 07:57

I\'ve got a few custom directives that use jQuery for animation effects (angular\'s built-in ngShow/ngHide and the like are functional, but not pretty). I think I remember r

2条回答
  •  隐瞒了意图╮
    2020-12-09 08:17

    "jqLite" (defined on the angular.element page) provides DOM traversal methods like children(), parent(), contents(), find(), next() (but not previous()). There is no selector-like method.

    You might want to try JavaScript's querySelector.

提交回复
热议问题