最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
to hiller:利用脚本控制表格单元的内容(原创)
时间:2022-06-30 09:40:48 编辑:袖梨 来源:一聚教程网
现在终于找到相关资料,做完了例子这个发现MSDN中也有一个类似的例子,呵呵!!
解释:
rows和cells在Table中分别代表着行和列的集合,在TABLE中的范围限于THEAD, TBODY, TFOOT。
使用方法:obj.rows(index)
obj.cells(index)
其中index是可选的,可以选择一个整数索引也可以选择一个字符串作为索引。
整数索引是基于0开始的,也就是说基和中的第一个元素的下标是0。
字符串索引必须是一个有效的至少存在于页面中的一个具有标示的元素名称。
我不知道翻译的是否正确,下面附上MSDN中的原文:
Optional. An integer or a string specifying the index value of the element to retrieve. Integer indexes are zero-based, meaning the first element in the collection has index 0. A string index is valid only if the string is an identifier of at least one element in the document.
解释:
rows和cells在Table中分别代表着行和列的集合,在TABLE中的范围限于THEAD, TBODY, TFOOT。
使用方法:obj.rows(index)
obj.cells(index)
其中index是可选的,可以选择一个整数索引也可以选择一个字符串作为索引。
整数索引是基于0开始的,也就是说基和中的第一个元素的下标是0。
字符串索引必须是一个有效的至少存在于页面中的一个具有标示的元素名称。
我不知道翻译的是否正确,下面附上MSDN中的原文:
Optional. An integer or a string specifying the index value of the element to retrieve. Integer indexes are zero-based, meaning the first element in the collection has index 0. A string index is valid only if the string is an identifier of at least one element in the document.
相关文章
- 灌篮军团关羽强度如何 11-07
- 剑与远征启程幽泽噬影屋怎么打 11-07
- 天堂2盟约兽人狂暴者有什么玩法 11-07
- 幻塔同心鏖战如何玩 11-07
- 尘白禁区米娅星彩技能怎么样 11-07
- 宝可梦大集结拉帝欧斯有什么招式 11-07