$sql = "insert into `elconlist` (`ecgrouid`,`elcono`) VALUES"; for($i = 0; $i creatElcono($comid)."'),"; }else{ ...
分类:
数据库 时间:
2014-08-18 15:55:02
阅读次数:
363
语句分类:一.顺序对程序逐一执行二.分支if语句--用来判断条件,bool型.1.if() 2.if() 3.if() 4.if(){ { { {} } } } else() else if()...
分类:
其他好文 时间:
2014-08-18 14:18:52
阅读次数:
136
代码如下 1 def leap_year(y): #判断是否是闰年 2 if (y % 4 == 0 and y % 100 != 0) or y % 400 == 0: 3 return True 4 else: 5 return False 6...
分类:
编程语言 时间:
2014-08-18 02:46:33
阅读次数:
229
不要把相等运算符(==)与赋值运算符(=)搞混。以&&运算符隔开的两个条件中的前者为错,则不会检测第二个条件的真假。利用这一点,可以提高脚本的速度。使用带switch的多个条件if(button=="next") window.location = "next.html"; else if(b...
分类:
编程语言 时间:
2014-08-17 22:41:13
阅读次数:
180
确认是否删除
function confirmd() {
var msg = "您真的确定要删除吗?/n/n请确认!";
if (confirm(msg)==true){
return true;
}else{
return...
分类:
Web程序 时间:
2014-08-17 15:39:32
阅读次数:
199
1、if(判断)2、 if(判断)3、 if(判断1)4、if(判断1) {{ { { (语句) (语句1) if(判断2) (语句1) }}{ } else (语句1)else if(判断2) { } { (语句2) else (语句2) } { } (语句2)……}else else(语句3) ...
分类:
其他好文 时间:
2014-08-17 15:26:42
阅读次数:
225
1、unless控制结构
条件为假时执行,与if相反
可以附带else
2、Until控制结构
条件为假时执行,一直执行到条件为真;
3、条件修饰词
效果等同于:
类似的模式:
4、裸块控制结构
{
body;
body;
....
}
有利于为临时变量圈定有效范围
5、elsif子句
6、自增、自减
同c语言
7、for
用法同c语言...
分类:
其他好文 时间:
2014-08-17 10:27:32
阅读次数:
204
enum IMAGEFORMAT { JPG, BMP} imageExt;int GetImageFormat(char *ext){ if(!stricmp(ext, "jpg")) imageExt = JPG; else if( !stricmp(ext, "bmp") ) imageE.....
分类:
其他好文 时间:
2014-08-16 19:44:10
阅读次数:
169
#ifndef#define _DEBUG 0#endif #ifdef _DEBUG#define trace(x) printf(x);#else#define trace(x) ;#endif
分类:
编程语言 时间:
2014-08-16 17:04:20
阅读次数:
193
个人原创,欢迎转载,转载请注明原文地址http://blog.csdn.net/bill_man上一篇介绍了QUAD_COMMAND渲染命令,顺带介绍了VAO和VBO,这一篇介绍批处理渲染命令BatchCommand,批处理命令的处理在Render中比较简单else if(commandType == RenderCommand::Type:: BATCH_COMMAND)
{
//将之...
分类:
其他好文 时间:
2014-08-15 21:10:49
阅读次数:
236