码迷,mamicode.com
首页 >  
搜索关键字:selector    ( 3894个结果
关于jquery on方法进行事件绑定触发次数指数叠加的问题
发生环境:$modal.on('click', '#search',function(e){});上面代码的语法是这样的:.on( events [, selector ] [, data ], handler(eventObject) )其中$modal为父容器,在该容器上绑定click事件,当i...
分类:Web程序   时间:2014-09-25 12:59:18    阅读次数:178
Android中View(视图)绘制不同状态背景图片原理深入分析以及StateListDrawable使用详解
今天继续给大家分享下View的相关知识,重点有一下两点: ? ? ? ? ?? 1、View的几种不同状态属性 ? ? ? ? ? ?2、如何根据不同状态去切换我们的背景图片。 ? ? 开篇介绍:android背景选择器selector用...
分类:移动开发   时间:2014-09-25 04:34:48    阅读次数:372
phpQuery—基于jQuery的PHP实现
Query的选择器之强大是有目共睹的,phpQuery?让php也拥有了这样的能力,它就相当于服务端的jQuery。 先来看看官方简介: phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (...
分类:Web程序   时间:2014-09-25 04:31:38    阅读次数:249
jquery,delegate中的this
$(selector).delegate(childSelector,event,data,function)在这个function中,$(this)指向childSelectot可把其中的$('p')改成$(this)看效果http://www.w3school.com.cn/tiy/t.asp?...
分类:Web程序   时间:2014-09-24 18:05:07    阅读次数:178
CSS从零开始(1)--CSS基础语法
1、CSS语法CSS规则有两个主要部分构成:选择器,以及一条或多条说明。例如:selector{declaration1;declaration2;declaration3;......;}注:选择器通常是你需要改变样式的html元素。 每条声明有一个属性和一个值组成。属性(property)是你....
分类:Web程序   时间:2014-09-24 17:47:57    阅读次数:234
jQuery on()方法
jQuery on()方法是官方推荐的绑定事件的一个方法。$(selector).on(event,childSelector,data,function,map)由此扩展开来的几个以前常见的方法有.bind() $("p").bind("click",function(){ alert("...
分类:Web程序   时间:2014-09-24 17:42:07    阅读次数:211
-[__NSCFNumber length]: unrecognized selector sent to instance 0x1657c5c0 2014-09-24 14:47:39.170 St
-[__NSCFNumber length]: unrecognized selector sent to instance 0x1657c5c0 2014-09-24 14:47:39.170 StarShow[1948:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason...
分类:其他好文   时间:2014-09-24 17:41:27    阅读次数:149
截取屏幕并且保存到相册
- (void)viewDidLoad { [super viewDidLoad]; UIButton *btn = [UIButton buttonWithType:UIButtonTypeContactAdd]; btn.center = CGPointMake(100, 200); [btn addTarget:self action:@selector(bt...
分类:其他好文   时间:2014-09-24 14:26:06    阅读次数:226
$.each 和$(selector).each()的差别
Home » jQuery » $.each()$.each() Posted on 2012 年 3 月 15 日 in jQuery, jQuery函数| by Jason | 译自官方手冊:jQuery.each()对数组或对对象内容进行循环处理jQuery.each( collection,...
分类:其他好文   时间:2014-09-23 13:38:04    阅读次数:173
IE css HACK
IE6:_selector{property:value;}selector{property:value;property:value !important;} //IE6 不支持同一选择符中的 !importantIE7:+selector{property:value;}IE8:selecto...
分类:Web程序   时间:2014-09-23 12:38:24    阅读次数:235
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!