12、remove(id, ...) Removes one or more DOM elements from the page. 從頁面上移除一個或多個DOM元素。
# Ruby code
page.remove('first', 'second')
// Generated JavaScript
["first", "second"].each(Element.remove);
13、replace(id, *options_for_render) Replaces the entire element specifIEd or outerHtml. replace is useful with partial templates so that the entire partial, which includes a container element, can be rendered and used to replace content during an RJS call. An example is an unordered list. A partial containing a
# Ruby code
product.replace 'banner', '