摘要: css sprite,css雪碧图生成工具V3.0更新 阅读全文
posted @ 2015-05-04 17:38 你猜不猜 阅读(4777) 评论(4) 推荐(2) 编辑
摘要: 一款小巧的css 雪碧图生成工具 阅读全文
posted @ 2015-04-29 08:41 你猜不猜 阅读(2203) 评论(10) 推荐(6) 编辑
摘要: 编译的时候加参数 --sourcemap=none --no-cache 就可以了 阅读全文
posted @ 2014-08-12 10:21 你猜不猜 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 1.html 部分 2.css 部分.spinner { margin: 100px auto; width: 50px; height: 60px; text-align: center; font-size: 10px;} .spinner > div { back... 阅读全文
posted @ 2014-05-30 16:43 你猜不猜 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 如果一个函数前面带上new来调用该函数,那么将创建一个隐藏连接到该函数的prototype成员的新对象,同时this将被绑定到那个新对象上即:function B(){}var a=new B();类似于function B(){}var a={};a.__proto__=B.prototype;B.call(a); 阅读全文
posted @ 2014-04-09 11:24 你猜不猜 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 今天面试了家公司,最后要写个js的简单数组排序,很久都写不出来,好尴尬,随着语言的发展,这些简单方法越来越不被重视了。。。 阅读全文
posted @ 2014-04-01 20:39 你猜不猜 阅读(819) 评论(3) 推荐(0) 编辑
摘要: 方法1:function clone(obj){ var o; switch(typeof obj){ case 'undefined': break; case 'string' : o = obj + '';break; case 'number' : o = obj - 0;break; case 'boolean' : o = obj;break; case 'object' : if(obj === null){ o = null; }else{ if(ob... 阅读全文
posted @ 2014-04-01 20:32 你猜不猜 阅读(1380) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 * @author ambar 3 * html5 placeholder pollfill 4 * - 使用绝对定位内嵌层 5 * - 也适用于密码域 6 * 目标浏览器: IE 6~9, FF 3.5 7 8 */ 9 (function ($) { 10 var attr = 'nullText'; 11 12 $.fn.placeholder = function (options) { 13 return this.each(function () { 14 var $input = $(t... 阅读全文
posted @ 2014-03-14 12:05 你猜不猜 阅读(676) 评论(0) 推荐(0) 编辑