09 2011 档案

摘要:*伯斯塔尔法则*//*求真务实*//*平稳退化==>渐进增强*//*梅特卡夫定律:网络价值同网络用户数量的平方成正比。*//*最终用户优先一旦遇到冲突,最终用户优先,其次是作者,其次是实现者,其次标准制定者,最后才是理论上的完满。*//*内容模型headernavsectionarticlefooter*/<divclass="usermod"><divclass="hd"></div><divclass="bd"></div><divclass="ft 阅读全文
posted @ 2011-09-23 18:09 leamiko 阅读(199) 评论(0) 推荐(0)
摘要:转自:http://www.cn-cuckoo.com/2010/10/21/the-design-of-html5-2151.html今天我想跟大家谈一谈HTML5的设计。主要分两个方面:一方面,当然了,就是HTML5。我可以站在这儿只讲HTML5,但我并不打算这样做,因为如果你想了解HTML5的话,你可以Google,可以看书,甚至可以看规范。实际上,确实有人会谈到规范的内容。史蒂夫·福克纳(Steve Faulkner)会讲HTML5与可访问性。而保罗·艾里什(Paul Irish)则会讲HTML5提供的各种API。因此,我今天站在这里,不会光讲一讲HTML5就算完事 阅读全文
posted @ 2011-09-23 17:53 leamiko 阅读(2001) 评论(2) 推荐(1)
摘要:View Code //MIXINS//modulepattern//Idefineafunctionandthenimmediatelyexecuteitwithinit'sownprivatebubble(functioncontext)(function(){//DataRetrievalvarXMLHttpFactories=[function(){returnnewXMLHttpRequest()},function(){returnnewActiveXObject('Msxml2.XMLHTTP')},function(){returnnewActiveXO 阅读全文
posted @ 2011-09-22 00:51 leamiko 阅读(188) 评论(0) 推荐(0)
摘要:var fun1 = function() {return 'hello fun1'} (); var fun2 = (function() {return 'hello fun2'}) (); 如果直接 function() {return 'hello fun1'} (); 报错,函数没有被括起来,产生了歧义认为 {}有可能是json对象,固有语法错误. (function() {return 'hello fun2'}) (); //正确语法,定义且执行一个函数 string to json 参见:http://www.cn 阅读全文
posted @ 2011-09-09 10:06 leamiko 阅读(944) 评论(0) 推荐(0)
摘要:function ___getPageScroll() { var xScroll, yScroll; if (window.innerHeight && window.scrollMaxY) { xScroll = window.innerWidth + window.scrollMaxX; yScroll = window.innerHeight + window.scrollMaxY; ... 阅读全文
posted @ 2011-09-01 16:54 leamiko 阅读(298) 评论(0) 推荐(0)

document.getElementById('MySignature') && document.getElementById('MySignature').style.display = "none"; document.getElementById('MySignature') && document.getElementById('blog_post_info').style.display = "none";