(11)復制內容到剪切板
function doCopy(obj) {
obj.select();
js = obj.createTextRange();
js.execCommand("Copy");
}
(12)特殊容器,放啥都行,可以建個test.html看看效果
<button><iframe src="
(13)交換節點
<table width=200 height=200 border >
<tr><td id=c1>CELL_1</td></tr>
<tr><td id=c2>CELL_2</td></tr>
</table>
<br>
<input type="button" value="swap cell" onclick="c1.swapNode(c2)">
(14)刪除節點
<table width=200 height=200 border >
<tr id="trall" >
<td id="c1" >CELL_1</td>
<td id="c2" >CELL_2</td>
</tr>
</table>
<br>
<input type="button" value="del cell" onclick="c2.removeNode()" >
會繼續補充,也請大家把自己掌握的貼出來共享。。。 天天學習,好好向上——
posted on 2011-12-31 15:40
東頭bing阿頭 閱讀(207)
評論(0) 編輯 收藏 所屬分類:
WEB開發