/**
*Handleaviewexception.
*
*@param\Exception$e
*@paramint$obLevel
*@returnvoid
*
*@throws$e
*/
protectedfunctionhandleViewException(Exception$e,$obLevel)
{
$e=newErrorException($this->getMessage($e),0,1,$e->getFile(),$e->getLine(),$e);
//thisisok..
分类:
Web程序 时间:
2016-09-06 23:54:21
阅读次数:
310
#include #include //终端操作头文件 char getch(void){ struct termios tm, tm_old; int fd = 0, ch; if (tcgetattr(fd, &tm) < 0) { //保存现在的终端设置 return -1; } tm_old... ...
分类:
其他好文 时间:
2016-09-06 21:11:30
阅读次数:
196
"abcd"反转为"dcba", 1、利用正则和数组反转,无循环 function reverse(oldstr){ var oldStrArr = oldstr.replace(/\w/g,'$&,').split(','); return oldStrArr.reverse().toString ...
分类:
Web程序 时间:
2016-09-06 19:52:59
阅读次数:
439
一、字符串 class str(basestring): """ str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return v ...
分类:
其他好文 时间:
2016-09-06 19:50:26
阅读次数:
230
刚刚开始我是这么写的 char* fun(QString data){ QByteArray byte = data.toLocal8Bit(); char* charData = byte.data(); return charData;} 这样子写调用一次是可以的,不过多次调用后 char* b ...
分类:
其他好文 时间:
2016-09-06 18:19:50
阅读次数:
165
其他函数知识点基本一致,C#特色: 1.ref关键字 将形参由按值传递改为按引用传递,函数参数变量在函数中处理变化,将改变函数参数值,不需要return 注意点: 不能用常量“const” 变量必须先初始化,不能为空值 2.out关键字 将指定给的参数作为输出参数 相当于将函数参数中out标记的值r ...
一: return在 if语句中的作用: 执行的情况如果 满足条件1: 1,2(判断条件成立,进入if语句中),3,4,5,6(终止后面的代码) 执行了 语句0,语句1 不满足条件1: 1,2(条件不成立,不执行if语句),7,8 执行了语句0,语句2,语句3 没有return: 满足条件1: 语句 ...
分类:
其他好文 时间:
2016-09-06 15:21:30
阅读次数:
220
##题目描述 Description: Snail Sort Given an n x n array, return the array elements arranged from outermost elements to the middle element, traveling clock ...
分类:
其他好文 时间:
2016-09-06 13:37:04
阅读次数:
453
七、 函数 函数由关键字function + 函数名 + 一组参数定义 函数可以被反复调用 语法: function funName( arg0,arg1,... argN){ statements; } return语句——从函数返回值 注意: 1.位于return 语句之后的任何代码都永远不会执 ...
分类:
编程语言 时间:
2016-09-06 12:05:44
阅读次数:
192
function A(){ this.name="zhangsan"; } A.prototype.getName=function(){ return this.name; } function B(){ this.age=20; } B.prototype=new A(); //子类型有时候需要 ...
分类:
编程语言 时间:
2016-09-06 10:29:12
阅读次数:
214