ramblings/oxygen/js-options/hello.js

11 lines
347 B
JavaScript
Raw Normal View History

2021-04-28 14:48:01 +00:00
hello = function () {
include('options.js');
var options = new Options(authorAccess, 'hello');
options.setOption('Hello', 'World');
options.setOption('See you later', 'aligator');
var myOptions = options.getOptions();
for (var key in myOptions) {
var value = myOptions[key];
Packages.java.lang.System.out.println(key + ' ' + value);
}
2021-04-28 13:12:30 +00:00
}