黑夜的狼

沮丧吗,那就是一种无病呻吟!留恋它就是一种高度近视!目光应该放得更远一点! 别不想飞,只是要一步跨过太平洋!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年3月13日

摘要: Step 1First things first, we need something that looks awesome. So a quick trip to Photoshop and voila we have a nice mockup of what our tabbed compon... 阅读全文
posted @ 2011-03-13 10:00 anncesky 阅读(240) 评论(0) 推荐(0) 编辑

摘要: So you've become comfortable with jQuery and would like to learn how to write your own plugins. Great! You're in the right spot. Extending jQuery with plugins and methods is very powerful and can save you and your peers a lot of development time by abstracting your most clever functions into 阅读全文
posted @ 2011-03-13 08:41 anncesky 阅读(362) 评论(0) 推荐(0) 编辑

摘要: 在javascript中关键字this是一个很难掌握的概念。它在不同的情况下指代不同的对象。下面就来看看,在JavaScript中各种this的使用方法有什么不同之处?1、在HTML元素事件属性中inline方式使用this关键字: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><divonclick="method(this)">element</div>这里的this代表触发onclick时间 阅读全文
posted @ 2011-03-13 03:09 anncesky 阅读(148) 评论(0) 推荐(0) 编辑

摘要: 1。Array.prototype:就是Array的原型,很多时候理解这个原型有点不清不楚的其实,有点像.NET里的反射一个类凡是通过prototype加的属性,方法,都可以在这个类的对象里找到 对象.有时候我们也直接在某一对象添加属性方法,那么只能这个对象里找到,重新创建的对象是没有刚刚在上一对象里添加的属性方法的内置的类型可以通过prototype找到内置的属性方法Array.prototype.slice这句就是访问Array的内置方法因为Array是类名,而不是对象名,所以不能直接用Array.slice2。接下来说slice方法,这个简单返回一个数组的一段。arrayObj.slic 阅读全文
posted @ 2011-03-13 03:02 anncesky 阅读(7899) 评论(5) 推荐(5) 编辑