How to load javascript having class, in jvm using nashorn

后端 未结 0 430
难免孤独
难免孤独 2020-12-03 05:40

Here is my simple java script test.js with class :

class Car {
  constructor(name, year) {
    this.name = name;
    this.year = year;
  }
}

myCar = new Car(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题