码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
【leetcode】Contains Duplicate & Rectangle Area(easy)
Contains DuplicateGiven an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at leas...
分类:其他好文   时间:2015-06-12 22:09:13    阅读次数:145
gallery3
这个版本的gallery更加的将页面和行为分离,通过DOM的插入节点功能将只用来占位的img标签和description标签(Choose a image)通过js来插入到页面。方法insertAfter是向节点添加节点function insertAfter(newElement,targetEl...
分类:其他好文   时间:2015-06-12 20:55:12    阅读次数:134
转 Jquery实际应用,判断radio,selelct,checkbox是否选中及选中的值
jquery取radio单选按钮的值 $("input[name='items']:checked").val(); 另:判断radio是否选中并取得选中的值 如下所示: function checkradio(){ var item = $(":radio:checked"); var len=i...
分类:Web程序   时间:2015-06-12 20:49:33    阅读次数:114
一个例子让你明白原型对象和原型链
开篇 之前对js中的原型链和原型对象有所了解,每当别人问我什么是原型链和原型对象时,我总是用很官方(其实自己不懂)的解释去描述。有一句话说的好:如果你不能把一个很复杂的东西用最简单的话语描述出来,那就说明你没有真正的理解。最近正在读《Javascript高级程序设计》,书中对原型对象和原型链的描述让我受益匪浅,下面仅用一个对比性的例子来说明。 我们经常会这么写 function Perso...
分类:其他好文   时间:2015-06-12 19:28:13    阅读次数:124
on绑定阻止冒泡失败
使用zepto库,有如下dom1 2 3 点我有惊喜4 5 View Code以上div内的节点是后续生成的,通过on绑定事件:1 $('#J_parent').on('tap', 'span', function(e){2 ...
分类:其他好文   时间:2015-06-12 19:19:49    阅读次数:130
vsftpd安装问题汇总(持续更新。。)
问题1.在执行make命令时却出现了问题,具体如下:sysdeputil.o: In function `vsf_sysdep_check_auth':sysdeputil.c:(.text+0x109): undefined reference to `crypt'sysdeputil.c:(.t...
分类:其他好文   时间:2015-06-12 19:14:31    阅读次数:117
AS2 的全屏自适应
function Move(obj, to_x, to_y, duration){ var _loc2 = new mx.transitions.Tween(obj, "_x", mx.transitions.easing.Strong.easeOut, obj._x, to_x, durat...
分类:其他好文   时间:2015-06-12 19:10:37    阅读次数:139
5 best Skype recorder that you don't want to miss
One of the biggest advantages of Skype is its simple and mostly free video calling function. But what if you need to record a video call, or if you wo...
分类:其他好文   时间:2015-06-12 18:52:23    阅读次数:102
监听窗口关闭,onbeforeunload事件
今天发现了onbeforeunload事件,它是这样用的: <script language="javascript"> g_blnCheckUnload = true; function RunOnBeforeUnload() { if (g_blnCheckUnload)    {//注意异常的捕获      try{   ...
分类:其他好文   时间:2015-06-12 17:36:30    阅读次数:177
js基础之函数递传参数与作用域(5下)
上一章节面试题分析: 第一步:浏览器预解析这段JS代码,找var function和参数;第二步:逐行解读代码;下面是具体步骤分析:
分类:Web程序   时间:2015-06-12 17:06:17    阅读次数:114
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!