Givennpairs of parentheses, write a function to
generate all combinations of well-formed parentheses.For example, givenn= 3, a
solution set is:"((()))...
分类:
其他好文 时间:
2014-06-11 12:25:51
阅读次数:
239
判断select选项中是否存在Value="paraValue"的Item//
1.判断select选项中 是否存在Value="paraValue"的Item function jsSelectIsExitItem(objSelect,
objItemValue) { ...
分类:
Web程序 时间:
2014-06-11 12:18:45
阅读次数:
191
Ext JS消息提示框主要包括:alert、confirm、prompt、show
1、Ext.MessageBox.alert() 调用格式: alert( String title, String msg, [Function fn],
[Object scope] ) 参数说明: t...
分类:
其他好文 时间:
2014-06-11 12:16:46
阅读次数:
323
1、OraclePackage的作用:可以简化应用设计、提高应用性能、实现信息隐藏、子程序重载2、ORACLE中的function
、package、package
bodies、procedure的区别和相同:function有返回值,有参数;procedure无返回值,有参数;package、p...
分类:
其他好文 时间:
2014-06-11 10:52:36
阅读次数:
209
FastReport调用Delphi中的人民币大写转换自定义函数FastReport调用Delphi中的人民币大写转换自定义函数function
TJzpzEdit1.MoneyCn(mmje: Double): string;consts1: string = ‘零壹贰叁肆伍陆柒捌玖’;s2: s...
分类:
其他好文 时间:
2014-06-11 10:09:52
阅读次数:
189
/验证规则详细配置 public function rules() { // NOTE: you
should only define rules for those attributes that // will receive user inputs.
...
分类:
其他好文 时间:
2014-06-11 10:05:03
阅读次数:
180
//js验证数字输入function gaga(obj){ //
值允许输入一个小数点和数字obj.value = obj.value.replace(/[^\d.]/g,"");
//先把非数字的都替换掉,除了数字和.obj.value = obj.value.replace(/^\./g,"")...
分类:
Web程序 时间:
2014-06-11 09:33:02
阅读次数:
268
function factorial(num){ if(num<=1){ return 1;
}else{ return num * arguments.callee(num-1); //指向一个正在执行函数的指针,可以实现对函数的递归...
分类:
Web程序 时间:
2014-06-11 08:56:56
阅读次数:
244
今天在写页面的时候,遇到一个关于js方法的命名问题,先看下代码:表单元素如下:js方法如下:function
isCulture(obj) { alert(123);}但是当页面执行onchange事件时,Firebug控制台报出异常:TypeError:
isCulture is not a...
分类:
Web程序 时间:
2014-06-11 08:49:31
阅读次数:
264
脑残wa了一次 1 var s:ansistring; 2
ans,i,k,m:longint; 3 pre:array[0..1010000] of longint; 4 function
max(x,y:longint):longint; 5 begin 6 if x>...
分类:
其他好文 时间:
2014-06-11 08:30:14
阅读次数:
179