摘要: 1 /***** Selector Hacks ******/ 2 3 /* IE6 and below */ 4 * html #uno { color: red } 5 6 /* IE7 */ 7 *:first-child+html #dos { color: red } 8 ... 阅读全文
posted @ 2014-08-22 20:39 未来动力 阅读(129) 评论(0) 推荐(0)
摘要: 1."2014-08-18 00:00:00" 与 13位毫秒 互换 1 var oTime = { 2 3 _format_13_time:function (str){ 4 var time = str.replace(new RegExp("-","gm"),"/... 阅读全文
posted @ 2014-08-22 15:58 未来动力 阅读(568) 评论(0) 推荐(0)
摘要: 1 //复选框全选 2 var oCheckBox ={ 3 _check_all: function(obj){ 4 if("all" == obj.name){ 5 if(obj.checked){ 6 $("#d... 阅读全文
posted @ 2014-08-22 15:55 未来动力 阅读(254) 评论(0) 推荐(0)
摘要: 1 /* 2 * 拓展数组原型方法 3 */ 4 Array.prototype.contains = function (arr){ 5 for(var i=0;i<this.length;i++){ 6 if(this[i] == arr){ 7 return true; ... 阅读全文
posted @ 2014-08-22 15:54 未来动力 阅读(128) 评论(0) 推荐(0)