// custom selector `:findday` used to match on specified day in ms. // // The selector is passed a date in ms and elements are added to...
分类:
编程语言 时间:
2014-07-16 21:26:27
阅读次数:
177
C#和php都有sleep让线程休眠指定时间后再继续执行后面的代码,swift中应该如何呢?首先,找一下objective-c版本是怎么做的[self performSelector:@selector(didTimeOut:) withObject:nil afterDelay:60];// 顺便...
分类:
编程语言 时间:
2014-07-12 00:35:19
阅读次数:
1116
1: 自定义表单提交设置submitHandler来自定义表单提交动作$(".selector").validate({submitHandler: function(form) { alert("验证通过"); }});如果需要提交表单,可以调用form.submit(); 或者$(form).a...
分类:
Web程序 时间:
2014-07-11 21:34:08
阅读次数:
282
实现效果:整理思路:1、控件:文字TextView和 右箭头ImageView2、因为考虑到点击效果,设计为:最外层为全圆角,内层有四种情况,分别为上圆角、无圆角、下圆角和全圆角。3、内层样式效果:需要初始样式、和点击样式4、需要知识:结合style、shake、selector组合样式布局: 1 ...
分类:
移动开发 时间:
2014-07-11 18:11:50
阅读次数:
244
Timer常用的一些东西
1. 初始化 timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(changeTime:) userInfo:nil repeats:YES];
2.timer 马上执行[tiemr fire];如果在初始化的时候不加这一句代码 ,timer也马上回...
分类:
移动开发 时间:
2014-07-11 00:43:22
阅读次数:
359
当listview的某个item选中时,默认有个选中的高亮显示,如果你要自定义选中时的高亮显示效果,可以在listview中设置属性
1
android:listSelector="@drawable/item_selector"
其中item_selector是在drawable目录下定义的一个xml文件,这...
分类:
其他好文 时间:
2014-07-10 20:19:58
阅读次数:
292
基本选择器:id选择器:$("#id")标签选择器:$("tag")类选择器:$(".classname")通配选择器:$("*")组选择器:$("selector1,selector2,...,selectorN")层次选择器:包含选择器:$("ancestordescendant")子选择器:$("parent>child")相邻选择器:$("prev+next")兄弟选择器:$..
分类:
Web程序 时间:
2014-07-10 18:41:34
阅读次数:
260
一直不明白pipe是如何唤醒selector的,所以又去看了jdk的源码(openjdk下载),整理了如下:以Java nio自带demo : OperationServer.javaOperationClient.java(见附件)其中server端的核心代码:public void initSe...
分类:
编程语言 时间:
2014-07-09 19:42:36
阅读次数:
342
1、常见的特殊符号的应用: IE6: _selector{property:value;} selector{property:value;property:value !important;} //IE6 不支持同一选择符中的 !important IE7: +selector{property:...
分类:
Web程序 时间:
2014-07-09 16:42:13
阅读次数:
210
m_listView:textview在tableview上,同时需要修改tableview高度//注册观察者 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboarWillShow:) na...
分类:
其他好文 时间:
2014-07-09 14:56:17
阅读次数:
185