摘要: i8 不支持 Array.prototype.slice.call(params,0)params可以是HTMLCollection、类数组、string字符串 阅读全文
posted @ 2015-05-13 20:48 自律西红柿 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1、每个函数都包含两个非继承而来的方法:apply()和call()。2、他们的用途相同,都是在特定的作用域中调用函数。3、接收参数方面不同,apply()接收两个参数,一个是函数运行的作用域(this),另一个是参数数组。call()方法第一个参数与apply()方法相同,但传递给函数的参数必须列... 阅读全文
posted @ 2015-05-13 17:30 自律西红柿 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 数组转字符串1.join()方法var s= ["a", "d", "a", "f", "g", "f", "s", "g"];s.join() //"a,d,a,f,g,f,s,g"s.join(" ") //"a d a f g f s g"s.join(''); //adafgfsg字符... 阅读全文
posted @ 2015-05-13 17:21 自律西红柿 阅读(289) 评论(0) 推荐(0) 编辑
摘要: TaoBaoUED | 做地球上最好的 UEDhttp://ued.taobao.org/blog/====>淘宝UEDhttp://www.smallni.com/ ====>前端好博客http://open.chrome.360.cn/extension_dev/browserAction.ht... 阅读全文
posted @ 2015-05-13 09:32 自律西红柿 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 转载出处:http://www.w3cplus.com/css/towards-retina-web.html维基百科将Retina译为“视网膜”。"Retina"一词,原意是“视网膜”的意思,指显示屏的分辨率极高,使得肉眼无法分辨单个像素。苹果的“iPhone4”和"new iPad"以及“Mac... 阅读全文
posted @ 2015-05-13 09:13 自律西红柿 阅读(459) 评论(0) 推荐(0) 编辑