该文被密码保护。 阅读全文
posted @ 2012-08-02 10:56 老西 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 在线版本 Javascript Closure Compiler 阅读全文
posted @ 2012-07-26 10:56 老西 阅读(111) 评论(0) 推荐(0) 编辑
摘要: var el = document.getElementById( 'fullscreenBtn' ); if( el ) { var options = document.getElementById( 'options' ); el.addEventListener( 'click', function( e ) { if( document.body.webkitRequestFullScreen ) { document.body.onwebkitfullscreenchange = function(e) { // options.st 阅读全文
posted @ 2012-07-12 09:58 老西 阅读(439) 评论(0) 推荐(0) 编辑
摘要: blockquote::after {content: "”0201D";font-size: 300%;position: absolute;right: -40px;bottom: -10px;color: #9198C1;} blockquote::before {content: "“0201C";font-size: 300%;float: left;margin-left: -40px;margin-top: 10px;color: #9198C1;} 阅读全文
posted @ 2012-05-29 17:14 老西 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 【转】http://developer.yahoo.com/performance/rules.htmlMinimize HTTP Requeststag: content80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all the components in the page: images, stylesheets, scripts, Flash, etc. Reducing the number of components i 阅读全文
posted @ 2012-05-09 11:12 老西 阅读(212) 评论(0) 推荐(0) 编辑
摘要: aslabs的Justin Silverton列出了十条有关优化MySQL查询的语句,我不得不对此发表言论,因为这个清单非常非常糟糕。另外一个Mike也同样意识到了。所以在这个博客中,我要做两件事情,第一,指出为什么这个清单很糟糕,第二,列出我的清单,希望我的比较好些。继续看吧,无畏的读者们! (译者注:作者借这个题目反讽另一篇同名的文章) 为什么那个清单很糟糕 1.他的力气没使对地方 我们要遵循的一个准则就是如果你要优化代码时,应该先找出瓶颈在哪。然而Silverton先生的力气没有用对地方。我认为60%的优化是基于清楚 理解SQL和数据库基础的。你需要知道join和子查询的区别,列... 阅读全文
posted @ 2012-05-02 14:49 老西 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 本文记录基于jquery的树-xtree的使用文档:[下载]XTREE使用的树结构<!--node节点--><li nodeid="1"><!--开关--><button></button><!--label--><a> <!--图标--> <button></button> <!--文字节点--> <span></span></a><!--子节点--><ul></ul>& 阅读全文
posted @ 2012-04-20 17:13 老西 阅读(4133) 评论(0) 推荐(1) 编辑
摘要: 有n只猴子围城一个圈,从第1只猴子开始数,每数m只猴子将第当前猴子踢出,如此反复,最后剩下一只猴子就是大王。/** * @name king * @param int m 间隔数 * @param int n 猴子总数*/function king(m, n){ /** queue { p:int, //前一只猴子 n:int //后一只猴子 } */ var p = {}; p[n] = { p:n-1, n:1 }; p[1] = { p:n, ... 阅读全文
posted @ 2012-04-03 12:09 老西 阅读(157) 评论(0) 推荐(0) 编辑
摘要: MIME TypeDescriptiontext/plainPlain text. Default if data is primarily text and no other type detected.text/htmlHTML. Default if common tags detected and server does not supply image/* type.text/xmlXML data. Default if data specifies<?xmlwith an unrecognized DTD.text/richtextRich Text Format (RTF 阅读全文
posted @ 2012-03-27 16:30 老西 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 本文详细描述现代浏览器的工作原理,为你开发出更好的应用提供指导http://www.html5rocks.com/en/tutorials/internals/howbrowserswork/ 阅读全文
posted @ 2012-03-22 17:08 老西 阅读(154) 评论(0) 推荐(0) 编辑