Jqyery根据行序号和列序号获取单元格
2016-03-22 16:34
337 查看
function getCellByRC(tableCon,rowIndex,colIndex){ var table = $(""+tableCon)[0];//获取第一个表格 var tr = $(table).find("tr")[rowIndex];//获取第rowIndex行 var td = $(tr).find("td")[colIndex];//获取第colIndex列 var text = $(td).text(); return text; }
相关文章推荐
- phpstudy2016最新版本mysql无法使用innodb的问题解决
- 程序员跳槽的最佳时机选择
- 基础练习 高精度加法
- [转]省市二级联动(纯js实现)
- Bzoj3028:食物:生成函数
- 拉链表
- Python的一些简单示例(2)
- mysql连接池-druid
- LinkedHashMap源码剖析
- tableview 数据刷新
- javascript如何判断一个对象是不是Array
- 导出(下载)数据库查询的数据生成csv文件
- xilinx器件封装信息
- [从头学数学] 第147节 数据的分析 小结与复习题
- presentViewController:animated:YES view will not appear until user taps again
- 51nod 1191(贪心+优先队列)
- C#中Math.Round四舍五入的用法详解,
- 设计模式是一个程序的主体!
- linux命令:top命令
- 字符串换行