2014年2月11日
摘要: falsy值并不完全彼此相等js中falsy值: '', 0,-0,NaN, false, null, undefined.所有这些值取反(通过!运算符)都是true. 因此一直以为使用 '==' 判断时它们会彼此相等,今天才发现不是这样.使用 '==' 判断时:1.NaN和任何值都不等,包括它本身,即NaN==NaN(false).2. 除NaN外,其它值都与自身相等,如null==null(true), 0与0(true).3.除自身外,null和undefined只与彼此相等;4.除自身外,-0,0,'',false 彼此相 阅读全文
posted @ 2014-02-11 12:57 夏_花 阅读(362) 评论(0) 推荐(0) 编辑
摘要: progressive enhancement:http://alistapart.com/article/understandingprogressiveenhancementweb standards trifle:http://www.stuffandnonsense.co.uk/archives/web_standards_trifle.htmlWriting efficient CSS selectors:http://csswizardry.com/2011/09/writing-efficient-css-selectors/qunit---js单元测试组件http://www. 阅读全文
posted @ 2014-02-11 11:23 夏_花 阅读(114) 评论(0) 推荐(0) 编辑