摘要: jQuery中可用于事件代理的函数有 .live(), .delegate(), .on()等,其中.live()在jQuery早期版本中就存在了,但是由于其存在的诸多问题(具体可查看官方文档),现已不推荐使用。总的来说,delegate()和on()差不多是等效的,只不过on()是1.7版本新添加的,官方可能以后会优先发展on()的扩展功能。 而在delegate()官方文档页面有一段话:Since the .live() method handles events once they have propagated to the top of the document, it is ... 阅读全文
posted @ 2012-03-01 15:49 JulianHere 阅读(246) 评论(0) 推荐(0) 编辑
摘要: From http://danwebb.net/2008/2/8/event-delegation-made-easy-in-jqueryI’m having a lot of fun poking around jQuery at the moment and came up with a cool little thing that’s going into Low Pro for jQuery but is a nice stand-alone little snippet for implementing event delegation. Since the Christian an 阅读全文
posted @ 2012-03-01 10:01 JulianHere 阅读(133) 评论(0) 推荐(0) 编辑
摘要: From http://www.nixtutor.com/linux/understanding-the-linux-directory-layout/Understanding the Linux Directory Layoutby Mark Sanborn on February 5, 2009Whether you are new to Linux or a seasoned veteran, have you ever wondered what a particular directory was for? Find out what each directory does. Le 阅读全文
posted @ 2012-02-29 15:41 JulianHere 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 转自 http://www.sitepoint.com/javascript-event-delegation-is-easier-than-you-think/By Andrew Tetlaw | July 23, 2008 | JavaScript & CSSIf you’re into adding a little JavaScript interactivity to your web pages you may have heard of JavaScript event delegation and thought it was one of those convolut 阅读全文
posted @ 2012-02-24 14:21 JulianHere 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 转自 http://www.planabc.net/2007/03/11/display_inline-block/在使用 CSS 实现表现的时候,会经常接触到 display:inline-block 这一属性,无论是初接触 Web 标准还是接触标准已久的朋友,大都会对这一属性感觉很迷惑和模糊。 display:inline-block将对象呈递为内联对象,但是对象的内容作为块对象呈递。旁边的内联对象会被呈递在同一行内,允许空格。但对于这个属性不是所有浏览器都识别。支持的浏览器有:Opera、Safari。但很遗憾,最流行的 IE 和 Firefox 却不支持这个属性(在 Firefox3 阅读全文
posted @ 2012-02-23 10:05 JulianHere 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 转自 http://limu.iteye.com/blog/1267475 又好久没写东西了,写上一篇的时候还以为接下来的工作会轻松一些,结果未从我所愿呐,又是一阵忙碌.而这段时间穿插着做了很多12年淘宝校园招聘的前端面试,很多同学都有问到,学校里没有前端的课程,那如何学习JavaScript? 我的回答是:读书吧~相对于在网上学习,在项目中学习和跟着有经验的同事学习,书中有着相对完整的知识体系,每读一本好书都会带来一次全面的提高.而如果深一脚浅一脚的学习,写出代码的质量会参差不齐.初学者的首要任务是成为靠谱的熟练开发者,能够稳定的输出有一定质量的代码,这样才能让人放心的把任务交给你.从这个角 阅读全文
posted @ 2012-02-22 11:12 JulianHere 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 转自 http://www.dabaoku.com/jiaocheng/fabu/linux/201008016596.shtmlGzip是一种流行的文件压缩算法,现在的应用十分广泛,尤其是在Linux平台。当应用Gzip压缩到一个纯文本文件时,效果是非常明显的,大约可以减少70%以上的文件大小。这取决于文件中的内容。利用Apache中的Gzip模块,我们可以使用Gzip压缩算法来对Apache服务器发布的网页内容进行压缩后再传输到客户端浏览器。这样经过压缩后实际上降低了网络传输的字节数,最明显的好处就是可以加快网页加载的速度。网页加载速度加快的好处不言而喻,除了节省流量,改善用户的浏览体验外 阅读全文
posted @ 2012-02-18 21:48 JulianHere 阅读(336) 评论(0) 推荐(0) 编辑
摘要: <object>与<embed>之间到底有什么关系和区别?以下是摘自 http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-June/020472.html 的回答On Tue, Jun 16, 2009 at 1:37 AM, Stephen Paul Weber wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Two questions. > > 1) What is the difference 阅读全文
posted @ 2012-02-14 11:25 JulianHere 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 转自 http://www.belshe.com/2010/06/04/chrome-cranking-up-the-clock/Chrome: Cranking Up The ClockJun 4th, 2010 at 12:32 amOver the past couple of years, several of us have dedicated a lot of time to Chrome’s timer system. Because we do things a little differently, this has raised some eyebrows. 阅读全文
posted @ 2012-02-10 18:03 JulianHere 阅读(289) 评论(0) 推荐(0) 编辑
摘要: reposted from perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/Stupid htaccess TricksPosted on January 10, 2006 in Websites by Jeff StarrWelcome to Perishable Press! This article, Stupid htaccess Tricks, covers just about every htaccess “trick” in the book, and is easily the site’s most p 阅读全文
posted @ 2012-01-24 10:57 JulianHere 阅读(412) 评论(0) 推荐(0) 编辑