http://ningtukun.blog.163.com/blog/static/186541445201310151539697/dismiss和hide方法都可以隐藏对话框,在需要的时候也可以用show方法调用显示。但是,这两者是有区别的。dismiss方法会释放对话框所占的资源,而hide方...
分类:
移动开发 时间:
2015-06-15 23:35:58
阅读次数:
274
该文介绍了如何使用指针中一些未使用的位来隐藏一些数据。 When we write C code, pointers are everywhere. We can make a little extra use of pointers and sneak in some extra informat...
分类:
其他好文 时间:
2015-06-15 12:33:40
阅读次数:
122
一,show和hide动画案例:点击收缩和展开(类似于QQ面板的效果) 二,fadeIn和fadeOut动画(它只是一种颜色的渐变,透明到不透明的渐变)案例:同上 三,slideUp和slideDown动画(类似于卷帘门的效果)案例:同上四,自定义动画animate()animate(params....
分类:
Web程序 时间:
2015-06-14 18:22:36
阅读次数:
131
1 题目:Write a function to find the longest common prefix string amongst an array of strings.Hide TagsString2 思路所有字符串公共的前缀,那么第一个字符串肯定包括了。 从第一个字符串开始遍历着手即...
分类:
其他好文 时间:
2015-06-14 16:26:59
阅读次数:
102
1.C++中调用程序:ShellExecute(NULL,L"open",L"cmd.exe",L"/c d: & cd cygwin & cygwin.bat",NULL,SW_HIDE);2.修改cygwin.bat:@echo offD:chdir D:\cygwin\binbash --lo...
分类:
编程语言 时间:
2015-06-14 12:23:46
阅读次数:
150
jQuery文件: $(function(){ var tit= $(".boxBar dl dt"); var con= $(".boxBar dl dd"); var list=$("dt:gt(4)"); var conBox=$("dd:gt(4)"); list.hide()...
分类:
Web程序 时间:
2015-06-12 11:20:32
阅读次数:
303
最近在使用Bootstrap.js,一不小心趴开源码看了一下,尤其是看到tab.js 1 var hideEvent = $.Event('hide.bs.tab', { 2 relatedTarget: $this[0] 3 }) 4 5 var showEvent = $...
分类:
其他好文 时间:
2015-06-12 00:36:57
阅读次数:
117
1 题目:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Hide TagsMathString2 思路:经过我仔细研读维基百科的说明h...
分类:
其他好文 时间:
2015-06-10 20:44:01
阅读次数:
126
Callback 函数在当前动画 100% 完成之后执行。jQuery 动画的问题许多 jQuery 函数涉及动画。这些函数也许会将speed或duration作为可选参数。例子:$("p").hide("slow")speed或duration参数可以设置许多不同的值,比如 "slow", "fa...
分类:
Web程序 时间:
2015-06-09 16:21:40
阅读次数:
107
1.方法:show:显示选中元素。hide:隐藏选中元素。toggle:显示或隐藏选中元素。fadeIn:将选中元素的不透明度逐步提升到100%。fadeOut:将选中元素的不透明度逐步降为0%。slideDown:垂直向下滑动显示选中元素。slideUp:垂直向上滑动隐藏当前元素。slideTog...
分类:
Web程序 时间:
2015-06-09 11:32:55
阅读次数:
204