功能: 点击table中的某一个td,获得这个tr的所有数据
效果图
function getData2(element){
document.getElementById("name").value=element.children[0].innerHTML;
document.getElementById("xuehao").v...
分类:
其他好文 时间:
2015-03-30 21:15:57
阅读次数:
162
2012. King
Constraints
Time Limit: 1 secs, Memory Limit: 256 MB , Special Judge
Description
There are n children in a country marked by integers from 1 to n.
They often fight wit...
分类:
其他好文 时间:
2015-03-30 09:19:57
阅读次数:
129
Candy
There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjected to the following requirements:
Each child must ha...
分类:
其他好文 时间:
2015-03-28 17:18:15
阅读次数:
150
动态绑定是在执行期间(而不是编译期间)判断所用对象的实际类型,根据其实际的类型调用其相应的方法(确定选择哪个多态形式被调用)。首先是方法的参数是父类对象,传入子类对象是否可行然后引出Parent p = new Children();这句代码不是很理解,google的过程中引出向上转型要理解向上转型...
分类:
编程语言 时间:
2015-03-20 23:20:18
阅读次数:
596
组合模式有时又叫部分-整体模式在处理类似树形结构的问题时比较方便,看看关系图
public class TreeNode {
private String name;
private TreeNode parent;
private Vector children = new Vector();
...
分类:
其他好文 时间:
2015-03-20 16:35:24
阅读次数:
122
Problem DescriptionThe picture indicates a tree, every node has 2 children.The depth of the nodes whose color is blue is 3; the depth of the node whos...
分类:
其他好文 时间:
2015-03-20 09:14:49
阅读次数:
194
1 $(function(){ 2 var $body = $("body").children(); 3 var $p = $("p").children(); 4 var $ul = $("ul").children(); 5 alert( $body....
分类:
Web程序 时间:
2015-03-19 21:40:21
阅读次数:
218
今天遇到一个问题,写了一个node,然后给他添加了很多成员,想对这个node的整体执行变灰效果,想使用GrayFilter。但是发现却没有实现。 最后是对node的所有children一个个遍历执行setFilter()来实现。 总觉得作为一个引擎,不至于连这样一个效果都要这样复杂去实现。肯...
分类:
其他好文 时间:
2015-03-15 19:47:58
阅读次数:
211
/**
* Ask one of the children of this view to measure itself, taking into
* account both the MeasureSpec requirements for this view and its padding
* and margins. The child must have Ma...
分类:
移动开发 时间:
2015-03-14 23:18:52
阅读次数:
463
清理SYSAUX表空间的WRH$_LATCH_CHILDREN表...
分类:
其他好文 时间:
2015-03-14 17:03:16
阅读次数:
169