說得很簡單...
我有元素clone
。其div
與保存在其中的一些其他標籤。它也有.x
在裏面。
我需要刪除它,然後apped修改元素到另一個元素。
不幸的是,它不起作用。刪除失敗的東西,但.x
仍在其中。
clone = subtitle.clone(); // Works!
no_label = clone.remove('.x'); // This fails.
more_subtitles.append(no_label); // Its appends no_label, but it still contains .x element.
什麼是你的變量字幕? –
'subtitle'是另一個元素。 – daGrevis