【发布时间】:2013-09-13 04:37:47
【问题描述】:
我正在尝试用我制作的新元素替换当前的 dom 元素。
我实现了以下行
$(this).parent().replaceChild(newElem,this);
但它给出了错误提示 $(this).parent().replaceChild is not a function 因为 replaceChild 不是 jQuery 函数,在 jQuery 中什么是等效的?
【问题讨论】:
标签: javascript jquery jquery-plugins