jQuery 滑动方法jQuery
拥有以下滑动方法:slideDown()、slideUp()、slideToggle()1、jQuery slideDown()
方法(用于向下滑动元素)语法:$(selector).slideDown(speed,callback);可选的 speed 参数规定...
分类:
Web程序 时间:
2014-06-29 14:26:48
阅读次数:
246
[https://workspaces.codeproject.com/elia-sarti/splitbutton-an-xp-style-dropdown-split-button]using
System;using System.ComponentModel;using System.Dra...
UIBarButtonItem *tbarItem =
[[UIBarButtonItemalloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemActiontarget:selfaction:@selector(book)];
UIBar.....
分类:
其他好文 时间:
2014-06-04 21:34:39
阅读次数:
239
遇到selector发现不是很明白,网上搜到的零零星星的介绍也不成体系,索性自己翻译一下,加深一下印象。原文来自官方API文档下的Selectors。Selectors在OC中,selector有两层含义。1、当selector在源代码中被用来指向一个对象的时候,selector可以仅仅指这个方法的...
分类:
其他好文 时间:
2014-06-04 20:59:49
阅读次数:
326
[selfperformSelectorOnMainThread:@selector(fetchedData:)withObject:datawaitUntilDone:YES];会创建一个新的线程实行fetchedData函数,并传入参数data,并且会等待函数退出后再继续执行。-
(void)f...
分类:
其他好文 时间:
2014-06-04 20:50:55
阅读次数:
189
今天在做环境监测的模拟软件时,登陆页面报NullPointException一般像我们初始化Button时,是Button
btn=(Button)findViewById(R.id.button1);其实完整的写法应该是Button
btn=(Button)this.findViewById(R....
分类:
其他好文 时间:
2014-05-30 00:49:43
阅读次数:
254
扩展阅读:Java NIO类库Selector机制解析(上)Java
NIO类库Selector机制解析(下)Java NIO的选择器部分,实际上有三个重要的类。1,Selector 选择器,完成主要的选择功能。select(),
并保存有注册到他上面的通道集合。2,SelectableChanne...
分类:
编程语言 时间:
2014-05-29 20:59:04
阅读次数:
346
一、可以通过代码的方式创建UIButton1、通用实例化对象方法:UIButton *button =
[[UIButton alloc] initWithFrame:rect];2、快速实例化对象方法:UIButton *button = [UIButton
buttonWithType:UIBu...
分类:
其他好文 时间:
2014-05-29 19:11:52
阅读次数:
360
当鼠标移动到图片文件夹的时候,将有一些button显示当鼠标移开这个文件夹,那些button隐藏了起来display属性的变化1.可以使用Js改变属性来操作暂未验证,待时间。2.可以使用Action来操作//
打开Folder操作 var openFolderTableElem...
分类:
其他好文 时间:
2014-05-29 10:39:06
阅读次数:
231
布局中通常会用到@null。如RadioButton常用的技巧通过RadioGroup实现Tab,需要设置android:button="@null"。如果要在代码中动态创建控件,android中并不能找到相关的属性或方法。搜索均无解决办法,最后想到一个变通的方法:通过透明色获取drawabl...
分类:
其他好文 时间:
2014-05-28 10:20:10
阅读次数:
360