我无法使用相对路径:gui.Shell.openItem();
,
这是代码:
var gui = require('nw.gui');
gui.Shell.openItem('setup/BitTorrent.exe');
答案 0 :(得分:0)
private static List<Fruits> getFruits() {
EnumSet<Fruits> local = EnumSet.of(CURRENT_FRUIT);
EnumSet<Fruit> otherFruits = EnumSet.complementOf(CURRENT_FRUIT);
// start by adding and shuffling otherFruits
List<Fruits> result = new ArrayList<Fruits>(otherFruits)
Collections.shuffle(result, new Random(System.nanoTime()));
// now add local
result.addAll(new ArrayList<Fruits>(local));
return result;
}