Augular JS里的各种ng-正文:1.ng-disabled="一种状态:该状态下不可用"例如:%button.btn.btn-2(ng-disabled="!activity_name")创建 //"activity_name"是一个可判断的值,当其值为true时,按钮可正常显示;flase...
分类:
Web程序 时间:
2014-09-18 11:25:33
阅读次数:
188
转自:http://www.cnblogs.com/anywherego/p/3542202.html下面以OldViewController(oldC)的按钮btn点击后跳转到NewViewController(newC)为例说明:1.Storyboard的segues方式鼠标点击按钮btn然后按...
分类:
移动开发 时间:
2014-09-16 22:02:21
阅读次数:
216
var otext = document.getElementById("text"); var obtn = document.getElementById("btn"); var oUL = document.getElementById("ul1"); obtn.on...
分类:
其他好文 时间:
2014-09-13 17:12:15
阅读次数:
120
移除事件 ??? unbind(type [,data])???? //data是要移除的函数 ??? $(‘#btn‘).unbind("click"); //移除click ??? $(‘#btn‘).unbind(); //移除所有? ??? 对于只需要触发一次的,随后就要立即解除...
分类:
Web程序 时间:
2014-09-12 15:31:53
阅读次数:
197
常用模拟有时候,需要通过模拟用户操作,来达到单击的效果。例如在用户进入页面后,就触发click事件,而不需要用户去主动单击。在JQuery中,可以使用trigger()方法完成模拟操作。例如可以使用下面的代码来触发id为btn的按钮的click事件。$('#btn').trigger("click"...
分类:
Web程序 时间:
2014-09-10 17:18:20
阅读次数:
186
中秋节快乐啊。。。 .a-btn{ display:block; position:relative; width:300px; margin:30px auto; height:40px; line-height:40px; border:2px ridge #fff; color:#fff; t...
分类:
其他好文 时间:
2014-09-10 14:00:10
阅读次数:
176
Tweens(补间动画)补间动画有很多种:这里以Tween Height为例:项目层次:btn为一个按钮,group为一组图片精灵,预览图如下:第一步:先为每个item附加一个Tween Height脚本,设置如下:form表示起始的高度,to表示最终高度,play style表示播放类型:once...
分类:
其他好文 时间:
2014-09-09 19:47:29
阅读次数:
223
-(void)back:(UIButton*)btn{//返回上一界面[self.navigationControllerpopViewControllerAnimated:YES];//返回到第一个界面//[self.navigationControllerpopToRootViewControllerAnimated:YES];//返回到指定的界面(必须是上面的界面)//[self.navigationControllerpopToViewCon..
分类:
其他好文 时间:
2014-09-05 03:23:41
阅读次数:
164
1.tp driver的tpd_down()和tpd_up()函数中不需要上报id号,上层会自动进行匹配;
2.tpd_up()函数中只需要上报BTN_TOUCH和mt_sync信息,其他信息不用上报,如下:
static void tpd_up(int x, int y,int *count)
{
input_report_key(tpd->dev, BTN_TOUCH, ...
分类:
移动开发 时间:
2014-09-04 09:47:07
阅读次数:
283
@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; btn.frame = CGRe...
分类:
移动开发 时间:
2014-09-04 09:34:27
阅读次数:
194