[英]How to use relative path in Node Webkit
我不能使用相對路徑: gui.Shell.openItem();
,這是代碼:
var gui = require('nw.gui');
gui.Shell.openItem('setup/BitTorrent.exe');
var path = require('path');
var absolutePath = path.join(process.cwd(), 'setup/BitTorrent.exe');
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.