fill_parent在全体系的Android版本中通过,match_parent使用在Android 2.2及以上版本。两者作用一致。1)fill_parent主动方:父组件被动方:子组件1.在高度或者宽度上设置为fill_parent,则子组件的高度或者长度根据父组件的值而定。通常值与父组件相等...
分类:
移动开发 时间:
2014-07-16 23:00:58
阅读次数:
210
query取得iframe中元素的几种方法在iframe子页面获取父页面元素代码如下:$('#objId', parent.document);// 搞定...在父页面 获取iframe子页面的元素代码如下:$("#objid",document.frames('iframename').docum...
分类:
编程语言 时间:
2014-07-16 22:53:40
阅读次数:
221
1、删除原有“钥匙串访问”中疑是过期的的证书;2、在Member Center中Certificate中删除疑是有问题的Certificate,重新添加新的Certificate;3、在“钥匙串访问” - 证书处理 - 从证书颁发机构请求证书,生成新的CertificateSigningReques...
分类:
移动开发 时间:
2014-07-16 21:43:05
阅读次数:
489
#coding=utf-8import osimport timedef Rename(foldname): for parent,dirnames,filenames in os.walk(foldname): for filename in filenames: ...
分类:
其他好文 时间:
2014-07-16 21:11:53
阅读次数:
170
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
For example,
Given [100, 4, 200, 1, 3, 2],
The longest consecutive elements sequence is [1, 2, 3...
分类:
其他好文 时间:
2014-07-11 00:51:05
阅读次数:
195
list_to_tree 使用起来十分方便,详细可查看手册。因为我在用的时候需要同时列出所有节点,所以写了一个递归函数,拿出来供大家参考。
/**
* 把返回的数据集转换成Tree
* @access public
* @param array $list 要转换的数据集
* @param string $pid parent标记字段
* @param string $level le...
分类:
Web程序 时间:
2014-07-10 22:30:14
阅读次数:
336
Longest Ordered Subsequence
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 31787
Accepted: 13903
Description
A numeric sequence of ai is ordered if a1 a2...
分类:
其他好文 时间:
2014-07-10 20:27:45
阅读次数:
202
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer or another expression.
Some examples:
["2", "1", ...
分类:
其他好文 时间:
2014-07-10 19:39:53
阅读次数:
146
基本选择器:id选择器:$("#id")标签选择器:$("tag")类选择器:$(".classname")通配选择器:$("*")组选择器:$("selector1,selector2,...,selectorN")层次选择器:包含选择器:$("ancestordescendant")子选择器:$("parent>child")相邻选择器:$("prev+next")兄弟选择器:$..
分类:
Web程序 时间:
2014-07-10 18:41:34
阅读次数:
260
题意:
给定case数
给定n个点的树,m个询问
下面n-1行给出树边
m个询问 x y
问:以x为根,y子树下 y的最小点标的儿子节点 和子孙节点
思路:
用son[u][0] 表示u的最小儿子 son[u][2] 表示u的次小儿子
son[u][1] 表示u的最小子孙
若lca(x,y) !=y 则就是上述的答案
若lca(x,y) == y
1、y != 1 那么最...
分类:
其他好文 时间:
2014-07-09 13:05:35
阅读次数:
141