1、将多个独立语句合并为一个复合语句,例如if...else...中经常如此使用 2、在变量间接引用中进行定界,避免歧义。例如${$my_var[8]}与${$my_var}[8]的区分 3、用于指示字符串变量中的单个字符(下标从0开始),例如 $my_str="1234"; $my_str...
分类:
Web程序 时间:
2014-08-06 22:45:52
阅读次数:
273
#includeusing namespace std;int main(){ int i,j,n; cout>n; if(n/10<1) { cout<<0; }else { i=n/10; j=i%10; ...
分类:
其他好文 时间:
2014-08-06 22:00:02
阅读次数:
191
SELECT 表名=case when a.colorder=1 then d.name else '' end, 字段序号=a.colorder, 主键=case when exists(SELECT 1 FROM sysobjects where xtype='PK' a...
分类:
数据库 时间:
2014-08-06 18:40:31
阅读次数:
227
public int importExcel(String path,int type){ if(mark==false){ return 0; }else try{ POIFSFileSystem fs; ...
分类:
其他好文 时间:
2014-08-06 18:28:41
阅读次数:
198
Go编程基础
Go的内置关键字(25个)
不多
break default func interface select
case defer go map struct
chan else goto package switch
const fallthrough if range type
continute for import return var
Go的注释方...
分类:
其他好文 时间:
2014-08-06 01:56:50
阅读次数:
313
<?php
functionyearMonthDays($year,$month){
if(in_array($month,array(1,3,5,7,8,01,03,05,07,08,10,12))){
return‘31‘;
}elseif($month==2){
if($year%400==0||($year%4==0&&$year%100!==0)){//判断是否是闰年
return‘29‘;
}else{
return‘28‘;
}..
分类:
Web程序 时间:
2014-08-05 23:02:31
阅读次数:
490
下面是JS代码:var curr = null; //curr为当前tab的标题,在else中赋值function addtab(href, tabtitle) { if (curr) { $('#cont...
分类:
其他好文 时间:
2014-08-05 18:13:49
阅读次数:
231
Quartus II综合器对于使能信号的产生 对比下面的代码和综合结果(代码取自crazybingo例程):always@(posedge clk or negedge rst_n)begin if(!rst_n) delay_cnt <= 0; else if(de...
分类:
其他好文 时间:
2014-08-05 18:11:29
阅读次数:
210
关键字:break case catch continue default delete do else finallyfor function if in instan...
分类:
编程语言 时间:
2014-08-05 13:32:39
阅读次数:
262
1 function delsure(){2 if(confirm('确认删除吗?')){3 return true;//点击确定则返回这里的内容4 }else{5 return false;6 }7 }在表单中添加onsubmit="retu...
分类:
Web程序 时间:
2014-08-05 00:29:28
阅读次数:
237