i.Net.DynamicsAX
Saturday, September 6, 2008
Javascript Anonymous Function
The Format
var func = new Function("p1", "p2",...,"pn", "function body");
A Example
var sayHello = new Function("toWhom", "alert('Hi, '+toWhom);");
sayHello("World.");
Note:
"Function" is class and it starts with a capital letter. Camel
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment