fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <script> function displayResult(x){ alert("Row index is: " + x.rowIndex); } </script> </head> <body> <table border="1"> <tr onclick="displayResult(this)"> <td>单击显示行下标</td> </tr> <tr onclick="displayResult(this)"> <td>单击显示行下标</td> </tr> <tr onclick="displayResult(this)"> <td>单击显示行下标</td> </tr> </table> </body> </html>
运行结果