删除元素指定的class名称。
元素的引用。
元素的样式类可以包含多个类名,并用空格分开。该方法将删除指定的类名,如果匹配不到指定的类名,则返回。
<div id="box" class="content news " >内容......</div> <input type="button" value="显示" onclick="$('box').removeClassName('news')" /> // The "box" has one className: content