含义解释:
decode(条件,值1,返回值1,值2,返回值2,...值n,返回值n,缺省值)该函数的含义如下:IF 条件=值1 THEN
RETURN(翻译值1)ELSIF 条件=值2 THEN RETURN(翻译值2) ......ELSIF 条件=值n THEN RET...
分类:
数据库 时间:
2014-07-22 23:17:14
阅读次数:
444
异常Throwable:分为:错误Error:主要就是内存溢出等错误,只有关掉重启才能解决问题;异常Exception:运行时异常RuntimeException:运行时发生的异常
一般有空指针异常,数组下标越,除数为0,输入类型不匹配的等异常。编译时异常:这个不是写程序时的错误,那是语法错误...
分类:
其他好文 时间:
2014-07-22 23:14:52
阅读次数:
378
//华为编程:筷子,找到第一个单对的筷子#include #define max 37int
main(){ int n,i,j; int a[max]; int flag=0; int error=-1; scanf("%d",&n);
if(n>max) ...
分类:
其他好文 时间:
2014-07-22 23:13:33
阅读次数:
339
mysql_num_rows();返回结果集中行的数目。1 $sql1 = "select *
from movie";2 $result1 = mysql_query($sql1) or die(mysql_error());3 $count =
mysql_num_rows($result1);...
分类:
Web程序 时间:
2014-07-22 23:13:33
阅读次数:
354
1.logger.debug("Debug ...")或logger.info("Info
...")或logger.warn("Warn ...")或logger.error("Error ...")
都只输出对应的信息,即logger.debug只输出debug的信息,info只输出info的信...
分类:
其他好文 时间:
2014-04-30 20:41:18
阅读次数:
704
1 var decode = function(m) { 2 try { 3 m =
decodeURIComponent(m); 4 } catch(e) {} 5 var s = m.split("%"); 6 if (s.length
> 1)...
分类:
移动开发 时间:
2014-04-30 20:11:33
阅读次数:
590
Mindjet.MindManager2012.v10.0在应用个别模板时提示“参数错误”,然后自动关闭。
解决办法:
如果是win7系统,可以进入C:\Users\(用户名)\AppData\Local\Mindjet\MindManager\10\Library\ENU\Templates,
可...
遇到一段代码,从数据库里读出来带 \ 字符需要转义成中文~用到url_decode(); 1
//$info 为刚从数据库中读取的二维数组 2 3 foreach($info as $key1 => &$value1) { 4
foreach($key1 as $key2 => &$val...
分类:
Web程序 时间:
2014-04-29 17:22:47
阅读次数:
709
crontab运行脚本存在两大问题:环境变量和路径,从而导致单独运行脚本没问题,但用crontab运行就报错。1、环境变量
描述问题:crontab: usage error: no arguments permitted after this option
因为crontab不提供环境,所...
分类:
其他好文 时间:
2014-04-29 10:23:47
阅读次数:
370
当在eclipse中的web工程中增加了extjs4,出现An internal error
occurred during: "Building workspace". Java heap space 错误。
解决办法1:把extjs4的工程安装包不要放到web工程中就ok了,或者建议直接用mye...
分类:
其他好文 时间:
2014-04-29 10:13:46
阅读次数:
401