用JS获取表格中单击某个单元格中按钮,得到所在行的信息:
function
GetRowNo
(
)
{
var
e
=
e
||
window
.
event
;
var
target
=
e
.
target
||
e
.
srcElement
;
if
(
target
.
parentNode
.
tagName
.
toLowerCase
(
)
==
"td"
)
{
rowIndex
=
target
.
parentNode
.
parentNode
.
rowIndex
;
}
}