会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Young
工作过程中记录的前端相关的问题。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
···
18
下一页
2013年3月31日
http 请求和响应
摘要: http://www.blogjava.net/honeybee/articles/164008.html
阅读全文
posted @ 2013-03-31 14:53 mabel_on_line
阅读(121)
评论(0)
推荐(0)
2013年3月28日
判断结果为false的情况
摘要: 在js逻辑运算中,0、""、null、false、undefined、NaN都会判为false,其他都为true
阅读全文
posted @ 2013-03-28 16:12 mabel_on_line
阅读(170)
评论(0)
推荐(0)
!!a 的用法
摘要: console.log( typeof 5);console.log(typeof !!5);log结果:numberboolean 看到很多代码if(!!attr),为什么不直接写if(attr);其实这是一种更严谨的写法:请测试 typeof 5和typeof !!5的区别。!!的作用是把一个其他类型的变量转成的bool类型。
阅读全文
posted @ 2013-03-28 16:11 mabel_on_line
阅读(823)
评论(0)
推荐(0)
&&的 和 || 特殊用法 ==和===
摘要: http://jishuziyuan.com/archive/shaenxing2/6341238.html<script>if(1 == true){ console.log('1.ture');}else{ console.log('1.false'); }if(1===true){ console.log('2.true'); }else{ console.log('2.false'); }</script>log结果:1.ture 2.false实例http://hi.baidu.com/songz
阅读全文
posted @ 2013-03-28 15:56 mabel_on_line
阅读(305)
评论(0)
推荐(0)
touchTimeout && clearTimeout(touchTimeout)
摘要: touchTimeout&&clearTimeout(touchTimeout)等价于if(touchTimeout){clearTimeout(touchTimeout)}
阅读全文
posted @ 2013-03-28 15:46 mabel_on_line
阅读(270)
评论(0)
推荐(0)
2013年3月27日
ie haslayout
摘要: http://baike.baidu.com/view/2945869.htmhaslayout 问题的调试与解决当网页在 IE 中有异常表现时,可以尝试激发 haslayout 来看看是不是问题所在。常用的方法是给某元素 css 设定 zoom:1。使用 zoom:1 是因为大多数情况下,它能在不...
阅读全文
posted @ 2013-03-27 16:25 mabel_on_line
阅读(163)
评论(0)
推荐(0)
css中的after
摘要: http://www.cnblogs.com/losesea/archive/2012/12/20/2825763.html
阅读全文
posted @ 2013-03-27 16:14 mabel_on_line
阅读(108)
评论(0)
推荐(0)
2013年3月25日
js 闭包利用
摘要: <p>1111</p><p>2222</p><p>3333</p>点击每一个 p 标签之后 会显示该标签在整个数组中的index值,所可以实现的方法有多种,以下为常见的几种:一、window.onload = function(){ var pAry = document.getElementsByTagName("p"); for( var i=0; i<pAry.length; i++ ) { pAry[i].onclick = function(arg) { return function(
阅读全文
posted @ 2013-03-25 16:15 mabel_on_line
阅读(119)
评论(0)
推荐(0)
undefined 和 null 区别联系
摘要: http://www.cnblogs.com/qiantuwuliang/archive/2010/01/12/1645302.html
阅读全文
posted @ 2013-03-25 15:43 mabel_on_line
阅读(137)
评论(0)
推荐(0)
js闭包 认为比较好理解的一篇文章
摘要: http://www.jb51.net/article/24101.htm
阅读全文
posted @ 2013-03-25 15:42 mabel_on_line
阅读(123)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
···
18
下一页
公告