会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
WISH
左边固定右边自适应的等高布局
摘要: DocumentLeft SidebarMain Content
阅读全文
posted @ 2015-04-23 16:53 wish&will
阅读(86)
评论(0)
推荐(0)
编辑
前端优化知识
摘要: 1. 缩写值 尽量减少 margin-left:auto; margin-right:auto; 这样的写法。 取而代之应该写成这样, margin:0 auto;2. 避免消耗性能的属性 filter:alpha(opacity=50) 或 width:exprexssion(t...
阅读全文
posted @ 2015-04-21 16:49 wish&will
阅读(157)
评论(0)
推荐(0)
编辑
js 闭包作用(转自别人的)
摘要: Stone 2012-09-28 15:44一、变量的作用域要理解闭包,首先必须理解Javascript特殊的变量作用域。变量的作用域无非就是两种:全局变量和局部变量。Javascript语言的特殊之处,就在于函数内部可以直接读取全局变量。Js代码var n=999;function f1(){al...
阅读全文
posted @ 2015-04-21 14:35 wish&will
阅读(101)
评论(0)
推荐(0)
编辑
js兼容性
摘要: JS的兼容性:1.ev||event2.addEventListener||attachEvent3.document.documentElement.scollTop||body4.getElementsByClassName5.setCapture6.firstChild||element7.l...
阅读全文
posted @ 2015-03-03 09:39 wish&will
阅读(77)
评论(0)
推荐(0)
编辑
转驼峰
摘要: var str='border-left-color';str=str.replace(/-[a-z]/ig,function(s){ return s.charAt(1).toUpperCase();});alert(str);
阅读全文
posted @ 2015-03-03 09:36 wish&will
阅读(102)
评论(0)
推荐(0)
编辑
用事件委托的方法点击每个li让其删除
摘要: 无标题文档 1 2 3 4 5 6 7 8 9
阅读全文
posted @ 2015-03-03 09:34 wish&will
阅读(413)
评论(0)
推荐(0)
编辑
==和===的区别
摘要: alert(true==false); falsealert(true===false); falsealert('12'==12); truealert('12'===12); falsealert(null==undefined); truealert(null===undefined); fa...
阅读全文
posted @ 2015-03-03 09:30 wish&will
阅读(132)
评论(0)
推荐(0)
编辑
严格模式的作用
摘要: 1.修复了局部函数this问题。2.定义变量必须加var。3.if、for语句里不允许有定义函数。4.干掉了with。
阅读全文
posted @ 2015-03-02 14:49 wish&will
阅读(291)
评论(0)
推荐(0)
编辑
导航
博客园
首页
联系
订阅
管理
公告