As a example of jQuery code (https://coderwall.com/p/7uchvg), I read that the expression $('#foo a');
behaves like this:
Find every a
in the page and then filter a
inside #foo
.
And it does not look efficient.
Is that correct? And if yes, how should we do that in a better way?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…