8)arguments 例 3.8.1<head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/></head><script> /* 马克-to-win:when there are n functions with the same function name, only the last one is used…
4)Function用法 例 3.4.1 <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/></head><script> /*When the Global object is created, it always has at least the following properties: O…
prototype见上一节,马克-to-win:prototype作用就是给某个类增加一个实例方法. 例 3.6.2 <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/></head><script> /*When the Global object is created, it always has at lea…
javascript 中 arguments.callee属性 可以在函数内部,指向的是这个函数(或者叫做“类”)本身. 相当于PHP 中的 self 关键字. The arguments.callee property contains the currently executing function. Description callee is a property of the arguments object. It can be used to refer to the current…