如果我有文件系统路径,我可以在资源管理器(在 Windows 上)或 Finder(在 OS X 上)中打开一个窗口,显示该路径指向的文件夹吗?
跨平台和/或无插件答案的 Cookie 点。
For 节点 webkit http://docs.nwjs.io/en/latest/References/Shell/ (NW.js http://docs.nwjs.io/en/latest/References/Shell/)您可以使用的用户...
var gui = require("nw.gui");
document.querySelector("[data-location]").onclick = function() {
gui.Shell.showItemInFolder(__dirname + '/content/project/' + this.textContent);
};
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)