在jQuery中为此添加String

Pho*_*ics 3 jquery

如果是HTMLDivElement,我该如何避免这样做?

$('#' + $(this).id + " > p").foo();
Run Code Online (Sandbox Code Playgroud)

做类似的事情:

($(this) + $( " > p")).foo();
Run Code Online (Sandbox Code Playgroud)