码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
TreeWalker and FindAll function[转贴]
http://www.automationspy.com/post-25_12_2014.htmlGet all control children of an element using AutomationElement.FindAll function: 1 // using FindAll f...
分类:其他好文   时间:2015-06-10 17:05:54    阅读次数:113
javascript 跨域子窗口关闭并刷新父窗口
//实现javascript跨域子窗口关闭并刷新父窗口functionwinOpen(url){varwin=window.open(url,‘‘,‘height=480,width=670,top=300,left=300,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no‘);setInterval((function(win){returnfunction(){if(win.clo..
分类:编程语言   时间:2015-06-10 15:55:13    阅读次数:148
AES加密
需要php 支持扩展mcrypt<?phpclass AES { public static function encrypt($input, $key) { $size = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MO...
分类:其他好文   时间:2015-06-10 15:30:18    阅读次数:139
No.14 Longest Common Prefix
No.14 Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.求一组string的最长公共前缀想法:找到最短的那个,然后依次对比典型的字...
分类:其他好文   时间:2015-06-10 15:28:49    阅读次数:107
JavaScript function函数种类
原文:JavaScript function函数种类本篇主要介绍普通函数、匿名函数、闭包函数 1.普通函数介绍 1.1 示例 function ShowName(name) { alert(name); } 1.2 Js中同名函数的覆盖 在Js中函数是没有重载,定义相同函数名、不同参数签名的函数,后...
分类:编程语言   时间:2015-06-10 15:27:10    阅读次数:141
jQuery easyUI combobox
$(‘#cc‘).combobox({ formatter: function(row){ var opts = $(this).combobox(‘options‘); return row[opts.textField]; } }); 上面是jQuery easyUI官网上找到的。 现在我们要做成如下这样的: 则可以通过...
分类:Web程序   时间:2015-06-10 14:23:36    阅读次数:146
页面实现验证码功能,点击“注册”按钮后,无论是否完成注册,验证码都能够自动刷新
要求页面实现验证码功能,点击“注册”按钮后,无论是否完成注册,验证码都能够自动刷新   function validteCode() {     var codes = new Array(4);       //     var colors = new Array("Red","Green","Gray","Blue","Maroon","Aqua","Fuchsia","Lim...
分类:其他好文   时间:2015-06-10 14:20:14    阅读次数:163
通过offsetTop函数获取层叠Div的偏移量
1 window.onload=function(){ 2 var box=document.getElementById("box"); 3 //alert(box.offsetTop); //margin:20px; 4 //alert(box.offsetParen...
分类:其他好文   时间:2015-06-10 14:01:21    阅读次数:108
201506101252_《想要得到时间戳可以用这个编码》
例如要得到:20150610125348,可以这么做:function CurentTime() { var now = new Date(); var year = now.getFullYear(); //年 var mo...
分类:其他好文   时间:2015-06-10 14:01:07    阅读次数:77
1-Two Sum
问题描述:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the t...
分类:其他好文   时间:2015-06-10 13:53:06    阅读次数:104
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!