IE浏览器table控件moveRow方法使用说明

Moves a table row to a new position.将表格的一行启动到另外一个外置

dhtml语法

orow = object.moverow(isource, itarget)

parameters

iSource Required. Integerthat specifies the index in the rows collection of the table row that is moved.
-1 Default.
iTarget Required. Integerthat specifies where the row is moved within the rows collection.
-1 Default.

 

Return Value

Object. Returns a reference to the table row that is moved.

Remarks

Rows between the iSource and iTarget positions in the rows collection are shifted based on the direction the row moves.

DHTML代码范例

This example uses the moveRow method to exchange the first and second rows in a table when the user clicks a button.

 

+展开
-HTML
    <SCRIPT>
    function fnMove(){
    oTable.moveRow(0,1);
    }
    </script> 
    <INPUT TYPE="button" VALUE="Change Rows" onclick="fnMove()">
    <TABLE ID="oTable">
    <TR><TD>Cell 1, Row 1</TD></TR>
    <TR><TD>Cell 1, Row 2</TD></TR>
    </TABLE>

 

是否符合公共标准

There is no public standard that applies to this method.

Applies To

[ Object Name ]
Platform Version
Version data is listed when the mouse hovers over a link, or the link has focus.
TABLE, TBODY, TFOOT, THEAD
Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms.
Win16: Version of Internet Explorer that the selected element supported this member for the 16-bit Windows platform.
Win32: Version of Internet Explorer that the selected element supported this member for the 32-bit Windows platform.
Unix: Version of Internet Explorer that the selected element supported this member for the Unix platform.
Mac: Version of Internet Explorer that the selected element supported this member for the Macintosh platform.
Windows CE: Version of Internet Explorer that the selected element supported this member for the Windows CE platform.
 
Move the mouse pointer over adisplay availability infor thlisted platfoms.


加支付宝好友偷能量挖...


评论(0)网络
阅读(239)喜欢(1)JavaScript/Ajax开发技巧