2012年3月30日
摘要: 对这两个单词的认识是在公司同事们在微博上的一次技术讨论,http://t.qq.com/p/t/8316001867175,http://t.qq.com/p/t/93710012038307相关的文章:Composite Oriented Programming with Qi4jComposite Oriented Programming (COP), .NET 4.0, MEF, and the Oslo RepositoryDCI:James O. Coplien和Trygve Reenskau提出的新架构方法 阅读全文
posted @ 2012-03-30 14:09 rulee 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 有一个需求要根据iframe内部的内容大小来动态改变iframe的大小,也就是不想出现iframe滚动条,达到最好的用户体验。于是写了这样一个看似完美的方法来取得iframe内部内容的尺寸:var getContentSize = function () { var docEl = document.documentElement, body = document.body; return { width: Math.max(docEl.scrollWidth, body.scrollWidth), height: Math.max(docEl.scro... 阅读全文
posted @ 2012-03-30 13:59 rulee 阅读(1498) 评论(0) 推荐(0) 编辑