<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ptml xmlns = "http://www.w3.org/1999/xhtml" lang = "gb2312"> <pead> <title> about arguments, tests for callee and caller </title> <meta http-equiv = "content-type" content = "text/html; charset = gb2312 "/> <meta name =" author "content =" fengyan, cnLei.y.l@gmail.com "> <meta name =" copyright "content =" http://www.cnlei.com "/> <meta name =" keywords "content =" "/> <meta name =" description "content =" "/> </pead> <body> <script type =" text/javascript "> function testArg () {var sTemp = "test () start to execute the \ n function definition body: \ n"; sTemp + = arguments. callee + "\ n"; sTemp + = "length of the input parameter: \ n"; sTemp + = arguments. length + "\ n"; sTemp + = "input parameter content: \ n"; for (var I = 0; I <input type = "button" onclick = "testArg ('iecn. net ', 'dark blue butterfly', 'fengyan '); "value =" testArg ('iecn. net ', 'dark blue butterfly', 'fengyan '); "/> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]