首页 >> 文摘 >> JAVASCRIPT

怎么得到焦点所在的单元格在表中的位置

采集日期:2008-4-22作者:起跑线(注:本数据由系统自动采集,内容与BHCODE无关)
请点击每行 <table border=2> <tr> <td onclick="alert(‘这是:‘+this.parentElement.sectionRowIndex+‘行‘+this.cellIndex+‘列!‘)">aaaaaaaaaaaa</td><td onclick="alert(‘这是:‘+this.parentElement.sectionRowIndex+‘行‘+this.cellIndex+‘列!‘)">bbbbbbbbb</td> </tr> <tr> <td onclick="alert(‘这是:‘+this.parentElement.sectionRowIndex+‘行‘+this.cellIndex+‘列!
本周推荐
MORE
热点关注
MORE