<div class="codetitle"> <span><a style="CURSOR: pointer" data="77135" class="copybut" id="copybut77135" onclick="doCopy('code77135')"><u>Code kopieren</u></a></span> Der Code lautet wie folgt:</div> <div class="codebody" id="code77135"> <br><script type="text/javascript"> <br> function fn(name){ <br>if(typeof name === "string"){ <br>var args = Array.prototype.slice.call( arguments, 1 ); =0; i<args.length;i ){ <br>alert(args[i]);//Ergebnis: 111 222 <br>} <br>} <br>} <br>function callFn(){ <br>fn ("test",111,222); <br>} <br>callFn(); <br><br> </div>