码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
图片延迟加载并等比缩放,一个简单的JQuery插件
使用方法:$(".viewArea img").zoom({height:74,width:103});(function($){$.fn.zoom=function(settings){//一些默认配置;settings=$.extend({height:0,width:0,loading:"ht...
分类:Web程序   时间:2014-06-04 22:32:22    阅读次数:376
Generate Parentheses
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:其他好文   时间:2014-06-04 22:30:30    阅读次数:418
Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a function to...
分类:其他好文   时间:2014-06-04 20:17:05    阅读次数:249
javascript学习笔记---ECMAScriptECMAScript 对象----修改对象
通过使用 ECMAScript,不仅可以创建对象,还可以修改已有对象的行为。prototype 属性不仅可以定义构造函数的属性和方法,还可以为本地对象添加属性和方法。创建新方法通过已有的方法创建新方法Number.prototype.toHexString = function() { retur....
分类:编程语言   时间:2014-06-04 19:25:37    阅读次数:284
Js中的this关键字
this关键字每个方法都包含两个内部属性,其中一个就是this。在js中,this引用的是函数据以执行操作的对象,也就是函数在执行时所处的作用域(通俗:就是哪个对象.出了这个函数,那么函数里的this就代表哪个对象)。但因为js的弱类型机制及函数本身就是一个Function对象实例的原因,使得一个函...
分类:Web程序   时间:2014-06-04 19:17:16    阅读次数:251
Remove Duplicates from Sorted Array II
Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret...
分类:其他好文   时间:2014-06-04 19:12:47    阅读次数:273
JavaScript高级程序设计之动态脚本及动态样式
1、动态加载脚本(src 原理,异步,支持跨域)var loadScript = function (url, callback) { var script = document.createElement("script"); script.src = url; document...
分类:编程语言   时间:2014-06-04 19:11:32    阅读次数:326
判断日期之差
function checkTime(){ var dateInp=$("#dateInp").val(); var day1=Date.parse(dateInp.replace(/-/g, "/")); var nowDate = new Date(); var date...
分类:其他好文   时间:2014-06-04 18:53:52    阅读次数:277
goldengate–使用filter+@GETENV在线重新初始化指定的table
goldengate–使用filter+@GETENV在线重新初始化指定的table转载:http://www.easyora.net/blog/using_filter_getenv_function_to_initialize_special_table.html 在oracle-oracle ...
分类:其他好文   时间:2014-06-04 18:49:40    阅读次数:550
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-06-04 18:37:18    阅读次数:277
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!