Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem stat...
分类:
其他好文 时间:
2014-06-18 21:58:07
阅读次数:
220
responseMsg();}else{ $wechatObj->valid();}class wechatCallbackapiTest{ public function valid() { $echoStr = $_GET["echostr"]; i...
分类:
微信 时间:
2014-06-18 19:37:39
阅读次数:
513
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 ...
分类:
其他好文 时间:
2014-06-18 17:25:33
阅读次数:
155
在应用有frameset或者iframe的页面时,parent是父窗口,top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe),self是当前窗口, opener是用open方法打开当前窗口的那个窗口。window.self功能:是对当前窗口自身的引用。它和window属性是等...
今天做的一个Struts2+MyFaces(JSF)+Spring的应用,为了使用JSF,我的struts.xml中使用了如下代码 ...
分类:
其他好文 时间:
2014-06-18 16:54:18
阅读次数:
441
1.首先什么是context?文档语焉不详,说是resource什么的,反正是没看懂,实际上可以认为它是一个指向parent对象的指针,受到那个parent对象的控制。2.为什么需要context?试想一下这个语句:ButtonmyButton=newButton(this);这个this就是con...
分类:
移动开发 时间:
2014-06-18 15:59:26
阅读次数:
189
1、只有块级box可以collapse;2、floated box 的margins不会collapse;3、overflow (而不是visible)不会同它的子元素发生collapse;4、root element不collapse 指什么?5、If A's parent is ‘rl’:If ...
分类:
其他好文 时间:
2014-06-18 14:39:13
阅读次数:
281
题目
Given a string containing just the characters '(' and ')',
find the length of the longest valid (well-formed) parentheses substring.
For "(()", the longest valid parentheses substring...
分类:
其他好文 时间:
2014-06-16 22:41:41
阅读次数:
267
Given a string containing only digits, restore it by returning all possible valid IP address combinations.
For example:
Given "25525511135",
return ["255.255.11.135", "255.255.111.35"].
(Order do...
分类:
其他好文 时间:
2014-06-16 19:24:42
阅读次数:
248
publicclassTest
{
publicstaticvoidmain(String[]args)throwsException{
Childrenc=newChildren();
c.show();
}
}
classParent
{
publicvoidshow(){
stepOne();
stepTwo();
}
voidstepOne(){
System.out.println("parent.stepOne()");
}
voidstepTwo(){
/..
分类:
其他好文 时间:
2014-06-16 15:12:59
阅读次数:
178