开发者

Can a Java Object be passed from Java Script to Applet

Can you please le开发者_开发知识库t me know whether we can pass a Java Object from JavaScript to Applet .


No, you can't. Javascript can't make a java Object, since a java Object can only exist inside a JVM. Javascript doesn't run in a JVM. But javascript code can pass parameters (typically strings) to an applet, and you can call methods on your applet's top level class.

The best place to start is Sun's documentation. There's more description here, and an example here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜