var os = this.os = {}, browser = this.browser = {}, webkit = ua.match(/WebKit\/([\d.]+)/), android = ua.match(/(Android)\s+([\d.]+)/), ipad = ua.match(/(iPad).*OS\s([\d_]+)/), iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/), webos = ua.match(/(webOS|hpwOS)[\s\/]([\d.]+)/), touchpad = we Read More
posted @ 2012-06-28 14:26 Kimura Views(576) Comments(0) Diggs(0) Edit
转http://bbs.blueidea.com/thread-2942014-1-1.html另外还可以看看javascript设计模式的第6章用过jQuery的朋友一定对jQuery中方法的链式调用印象深刻,最近发布的YUI3也支持了方法的链式调用。这是一个非常不错的语法特性,能让代码 更加简洁、易读。很多时候链式调用可以避免多次重复使用一个对象变量,从而减少代码,而js是一种客户端执行的脚本... Read More
posted @ 2010-09-18 10:09 Kimura Views(191) Comments(0) Diggs(0) Edit
http://dmitry.baranovskiy.com/Quick test for real understanding of JavaScript core beyond closures and scopes. Here five small scripts. Try to answer what will be alerted in each case without running ... Read More
posted @ 2010-06-09 17:22 Kimura Views(164) Comments(0) Diggs(0) Edit
http://dmitry.baranovskiy.com/Recently I was talking to friend of mine about objects in JavaScript. He is writing JavaScript for living and very good at it, however I found that he doesn’t under... Read More
posted @ 2010-06-09 15:08 Kimura Views(218) Comments(0) Diggs(0) Edit
http://dmitry.baranovskiy.com/I will not write about prototypical inheritance in JavaScript today. Instead lets take a look at one misunderstanding:“Changing prototype on the constructor will ma... Read More
posted @ 2010-06-09 09:44 Kimura Views(197) Comments(0) Diggs(0) Edit
http://www.sitepoint.com/blogs/2009/03/05/5-reasons-to-avoid-css-hacks-and-conditional-stylesheets/SS is more of an art than a science. You can know about every combination of selector and be an exper... Read More
posted @ 2010-06-08 09:26 Kimura Views(184) Comments(0) Diggs(0) Edit
http://yuiblog.com/blog/2006/04/11/with-statement-considered-harmful/JavaScript’swithstatement was intended to provide a shorthand for writing recurring accesses to objects. So instead of writin... Read More
posted @ 2010-06-06 18:20 Kimura Views(214) Comments(0) Diggs(0) Edit
http://yuiblog.com/blog/2006/06/01/global-domination/JavaScript, as realized in browsers, is a load-and-go programming language. Programs are delivered to the execution site as text. This is a good fi... Read More
posted @ 2010-06-06 18:14 Kimura Views(267) Comments(0) Diggs(0) Edit
position属性可以让你让你随意控制一个特定元素在浏览器何处以及如何显示。比方说我们用position:fixed 让一个图片显示在浏览器的左上角.即使出现滚动条他依然可以在浏览器的左上角.posotion属性有4个取值.由于atatic为默认的方式。所以实际上可用的值只有3 个 为了方便阅读~以下统称为:固定(fixed)、相对(relative)、 绝对(absolute).第1:固定定位... Read More
posted @ 2010-06-04 17:03 Kimura Views(223) Comments(0) Diggs(0) Edit
关于跨浏览器测试那点事 2010-05-29 12:36| 180 次阅读| 【已有0条评论】发表评论 感谢comsharp的提供| 收藏这篇资讯 Web 设计与开发师的一个重要工作环节是跨浏览器测试,谁让我们生活在这个既幸福又痛苦的时代,有那么多浏览器摆在我们面前,还有那个噩梦般总也摆脱不掉的 IE6。本文讲述了与跨浏览器测试有关的各种问题与知识,包括渲染,平台,设备以及 JavaScrip... Read More
posted @ 2010-05-31 17:38 Kimura Views(206) Comments(0) Diggs(0) Edit