A framework that allows you to dynamically perform Java with JavaScript script SEPPIA

xiaoxiao2021-03-06  18

I saw the introduction to SEPPIA, I feel very curious, I feel very curious, I will read my own understanding, I feel that this Dongdong is not bad, but I haven't thought about where it is appropriate, and His support for web. SEPPIA is a small frame for Java development. He can make you write a call to Java objects with JavaScript scripts. Of course, the JS script you wrote is not needed. You can run under the framework, of course you write The JS script is explained by the framework, not our ordinary browser. Http://www.seppia.org/ has a simple getting start. I understand that he is equivalent to a dynamically executive Java scripting language, similar to Groovy, it just provides JavaScript scripting support. This is my test script zming.jsfunction main () {java.lang.system.out.println ("Hello World"); var map = new java.util.hashmap (); map.put ("aa", "11"); java.lang.system.out.println (map);} Running results are as follows E: /Tools/new-framework/seppia-1.0> java -cp. Startuphello World {aa = 11} Ha, in JavaScript The object call Java is more cool in the script! !

There is already an introduction article on Onjava. You can look at it: http://www.onjava.com/pub/a/onjava/2005/16/seppia.html? Page = 1

转载请注明原文地址:https://www.9cbs.com/read-56422.html

New Post(0)