关于or,and的使用,查资料得知:and相当于then,or相当于else
下面通过举例来理解这两个关键字的使用:
比如:【1】
$isRight or $a=1000;
他与下面这段代码是等价的:
if(isRight==true)
{
}
else
{
$a=1000;
}
【2】
$update and $db_factory=1;
等价于:
if($update=...
分类:
Web程序 时间:
2014-05-10 09:41:00
阅读次数:
452
点击打开链接
The Windy's
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 3788
Accepted: 1630
Description
The Windy's is a world famous toy factory that owns...
1.NSOperation对于NSOperation,In OS X v10.6 and later,
operation queues ignore the value returned by this method and always start
operations on a separat...
分类:
移动开发 时间:
2014-05-09 17:36:56
阅读次数:
494
1 $() vs $$("someSelector") returns a array.
This is defiend in jQuery.prototype.$.methodName is a method defined in
jQuery...2methods below will stop...
分类:
Web程序 时间:
2014-05-09 11:33:38
阅读次数:
371
一、普通1、private String[] method =
null;ArrayAdapter methodAdapter = new
ArrayAdapter(this,android.R.layout.simple_spinner_item, method);methodSpinner =
...
分类:
其他好文 时间:
2014-05-07 18:32:48
阅读次数:
274
paip.hql的调试故障排查流程总结
环境.myeclipse7.0 1
Hql的调试工具myeclipxe默认工具.../Hibernate8IDE 1
故障的排除方法overview 1
Hql调试流程 1
问题的解决Session factory not created for configuration 3
环境.myeclipse7.0
Hql的调...
分类:
其他好文 时间:
2014-05-07 08:44:18
阅读次数:
230
### 背景
银时跟我讲,想从 Netty3迁移到Netty4 。
问其原因是因为 Netty3在容器里会报错,错误堆栈:
java.io.IOException: 无法立即完成一个非阻止性套接字操作。
at sun.nio.ch.SocketDispatcher.close0(Native Method)
at sun.nio.ch.SocketDisp...
分类:
其他好文 时间:
2014-05-07 06:30:21
阅读次数:
425
WebService之CXF注解
1、具体错误如下
五月 04, 2014 11:29:28 下午 org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
信息: Creating Service {http://service.you.com/}IServiceSer...
分类:
Web程序 时间:
2014-05-07 05:43:28
阅读次数:
444
WebService之CXF注解
1、具体报错如下
五月 04, 2014 11:24:12 下午 org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
信息: Creating Service {http://service.you.com/}IServiceSer...
分类:
Web程序 时间:
2014-05-07 04:08:52
阅读次数:
630
package mytest;
import java.util.*;;
public class mymain {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.print(new Date());
Properties p=System.get...
分类:
编程语言 时间:
2014-05-04 17:52:02
阅读次数:
363