Hm... I think you should first get to know how does JavaScript work.
Any JavaScript function can be called with any number of arguments,
regardless of its declared arity. Consider:
js> function a() { print(arguments[0]); }
js> a()
undefined
js> a("x")
x
js> function b(p) { print(p); print(arguments[1]); }
js> b()
undefined
undefined
js> b("x")
x
undefined
js> b("x", "y")
x
y
js> b("x","y","z")
x
y
js>
--
Attila.
twitter: http://twitter.com/szegedi
On 2009.01.29., at 12:33, rhtdm48 wrote:
Is there any way to get the arguments type of a function written in
javascript.
and also a way to pass javascript objects to java and passing java
objects to javascript
plz tell me how to do this?..
Thank you..
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino