摘要: 调用一个函数将会挂起当前函数的执行,并传递控制权与参数给新的函数。 除了声明的参数,每个函数会接收到两个新的附加参数:this和arguments。 this是个很重要的参数,并且它的值是由调用模式决定的。 以下是JavaScript中很重要的4个调用模式: a. 方法调用模式the method invocation pattern b. 函数调用模式the function invocation pattern c. 构造器调用模式the constructor invocation pattern d. Apply调用模式the apply invocation pattern  阅读全文
posted @ 2011-04-19 10:39 陈锐达 阅读(2142) 评论(0) 推荐(0) 编辑