1、标签选择器 E{}2、ID选择器 #id{}3、类选择器.class{}4、群组选择器E1,E2,E3{}5、后代选择器E F{}6、通配选择器*{}7、伪类选择器E:Pseudo-elements{}8、子选择器E>F{}9、临近选择器E+F{}10、属性选择器E[attr]{}选择器的特殊性...
分类:
Web程序 时间:
2014-12-28 01:43:53
阅读次数:
147
参考视频http://www.imooc.com/learn/163 $value) { //如果键名是数字,则改为格式 $attr = ''; if (is_numeric($key)) { $attr = " id='{$key}'"; $key ...
分类:
移动开发 时间:
2014-12-27 22:55:55
阅读次数:
1043
xxx
css and attr
css 只能修改和STYLE 相关的值。
而 attr 能修改所有的值。...
分类:
Web程序 时间:
2014-12-26 21:44:10
阅读次数:
210
.prop()1、.prop( propertyName )获取匹配集合中第一个元素的Property的值2、.prop( propertyName, value ).prop( map ).prop( propertyName, function(index, oldPropertyValue) ...
分类:
Web程序 时间:
2014-12-26 12:52:04
阅读次数:
160
1.创建线程 int pthread_create(pthread_t *restrict_ptid, const pthread_attr_t *restrict_attr, void *(*start_routine)(void*), void *restrict_arg); ptid是一个pt...
分类:
编程语言 时间:
2014-12-25 11:12:19
阅读次数:
252
//获取样式function getStyle(obj,attr){if(obj.currentStyle){return obj.currentStyle[attr];}else{return getComputedStyle(obj)[attr];}}//绑定事件function addHand...
分类:
Web程序 时间:
2014-12-24 19:55:49
阅读次数:
138
当需要上传文件的时候我们用form标签可以直接上传(注意;一定要有enctype属性),这时候就不好用ajax的方式,但是我们又需要返回上传成功的提示信息。这时候可以这样:1、JSP页面写JS方法,提交form $('#selectForm').attr("action","/upload!upl....
分类:
Web程序 时间:
2014-12-24 14:38:02
阅读次数:
154
jQuery中有三种添加数据的方法,$().attr(),$().prop(),$().data()。但是前面两种是用来在元素上添加属性值的,只适合少量的数据,比如:title,class,name等。对于json这种数据量大的,就适合用data方法来添加,而data方法就是jQuery缓存机制最重...
分类:
Web程序 时间:
2014-12-24 09:58:52
阅读次数:
160
无标题文档 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1function getstyle(obj,attr){ return obj.currentStyle?obj.currentStyle[at...
分类:
其他好文 时间:
2014-12-23 17:12:51
阅读次数:
227
function shake(obj,attr,endfn){ if( obj.shaked ) { return; } obj.shaked = true; var num = 0; var timer = null; var arr = []; va...
分类:
其他好文 时间:
2014-12-23 12:04:24
阅读次数:
126