【发布时间】:2011-02-11 10:18:32
【问题描述】:
是否有一种技巧可以将任意内容注入 DOM,然后在不知道内容是什么的情况下选择该内容?
例子:
function myInjector( _htmlElement ) {
$('#target').replaceWith(_htmlElement);
/* Is it possible to then select the injected element here? */
}
感谢您提供的任何建议。
谢谢。
【问题讨论】:
标签: javascript jquery dom jquery-selectors