Chapter 3 DynaScript Predefined Objects
The Function
object
has this method:
Function.toString( )
Returns the body of the function as a string.
String.
<!--SCRIPT
myFunc = new Function( "x","y", "return x * y;" );
document.writeln( myFunc(5, 6) );
document.WriteLn( myFunc.toString() );
-->
Copyright © 1999 Sybase, Inc. All rights reserved. |
![]() |