自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 Secret of the JavaScript Ninja 学习笔记 - 7

第二章 Closing in on closures5.1 How closures work一个晦涩的定义:A closure is the scope created when a function is declared that allows the function to access and manipulate variables that are external to t

2013-02-18 01:57:28 265

原创 Secret of the JavaScript Ninja 学习笔记 - 6

第四章 Wielding functions4.3 Fun with function as objectsvar fn = function() {};The semicolon after function(){} is a good practice. When compressing code, properly placed semicolons will allow for

2013-02-16 08:43:05 232

原创 Secret of the JavaScript Ninja 学习笔记 - 5

第四章 Wielding functions4.1 Anonymous functions下面的代码演示了采用匿名函数的几个典型场景 /** * Establish an anonymous function as event handler. There's no * need to create a named function only to refer

2013-02-15 12:58:17 347

原创 Secret of the JavaScript Ninja 学习笔记 - 4

第三章 Functions are fundamental3.3 InvocationsThe manner in which a function is invoked has a huge impact on how the code within it operates, primarily in how thethis parameter is established.Th

2013-02-15 02:22:56 380

原创 Secret of the JavaScript Ninja 学习笔记 - 3

第三章 Functions are fundamental3.2 DeclarationsFunction literal ::= function [funcName] () { }All functions have a property named name. /** * Declares a named function. T

2013-02-14 12:21:23 267

原创 Secret of the JavaScript Ninja 学习笔记 - 2

第三章 Functions are fundamental3.1 What's with the functional difference?functions are objects.Objects具有下列属性:can be created via literals可以被赋值给某个变量可以作为参数传递给functions可以作为函数的返回值可以有属性functions

2013-02-14 03:29:45 458

原创 Secret of the JavaScript Ninja 学习笔记 - 1

第二章 Arming with testing and debugging两种主要的调试策略:日志(console.log(),alert())断点示例一 使用console.log() console.log("strat initialization"); console.log("done"); hello world下图是

2013-02-13 06:48:14 432

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除