码迷,mamicode.com
首页 >  
搜索关键字:r max row function    ( 89697个结果
Same Tree
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:其他好文   时间:2014-05-01 16:06:46    阅读次数:427
js实现trim() JS去掉首尾空格 JS去掉两头空格
function trimStr(str){ return str.replace(/(^\s*)|(\s*$)/g,"");}用的时候就是直接 var 变量=trimStr(需要去空格的字符串);
分类:Web程序   时间:2014-05-01 15:47:26    阅读次数:347
ExtJS4.2 Grid 分页栏 搜索
function SearchCondition(){ this.startTime = ""; this.endTime = ""; this.targetInfo = ""; this.logType = ""; this.m...
分类:Web程序   时间:2014-05-01 15:36:22    阅读次数:414
Delphi XE6 TStringHelper中的string类型转换
类型转换:function ToBoolean: Boolean;function ToInteger: Integer;function ToSingle: Single;function ToDouble: Double;function ToExtended: Extended;class f...
分类:其他好文   时间:2014-05-01 15:02:01    阅读次数:382
poj 3384 Feng Shui 半平面交的应用 求最多覆盖凸多边形的面积的两个圆 的圆心坐标
题目来源:http://poj.org/problem?id=3384分析:用半平面交将多边形的每条边一起向“内”推进R,得到新的多边形(半平面交),然后求多边形的最远两点。代码如下:const double EPS = 1e-10;const int Max_N = 105 ;struct Poi...
分类:其他好文   时间:2014-05-01 14:35:31    阅读次数:528
js实现hash
由于项目中用到了hash,自己实现了一个。Hash = function () { } Hash.prototype = { constructor: Hash, add: function (k, v) { if (!this.hasO...
分类:Web程序   时间:2014-05-01 13:44:25    阅读次数:444
解析theme()
drupal_render()只是对theme()的调用做了包装,真正做任务的还是theme()。function theme($hook, $variables = array()) { ... ...}theme()的开头检查了module_load_all()是否有执行。theme()只能在....
分类:其他好文   时间:2014-05-01 02:20:32    阅读次数:493
关于IE下AJAX的问题探讨
今天JS练手的时候,想封装一个发送AJAX请求的对象,当然,是想要兼容全浏览器的。代码如下:var Ajax = { xhr: null, callback: null, XMLHttp: function() { var xmlhttp; //标准浏览器 if(window.XMLHttpRequ...
分类:其他好文   时间:2014-05-01 01:58:00    阅读次数:288
jQuery中.bind() .live() .delegate() .on()的区别
bind(type,[data],fn) 为每个匹配元素的特定事件绑定事件处理函数$("a").bind("click",function(){alert("ok");});live(type,[data],fn) 给所有匹配的元素附加一个事件处理函数,即使这个元素是以后再添加进来的$("a").l...
分类:Web程序   时间:2014-05-01 01:29:08    阅读次数:441
动态加载、移除、替换JS和CSS
//动态加载一个js/css文件 function loadjscssfile(filename, filetype) { if (filetype == "js") { var fileref = document.createEl...
分类:Web程序   时间:2014-05-01 00:51:10    阅读次数:451
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!