1
有沒有什麼辦法可以讓我打開文件對話框到一個名爲「projects」的文件夾中NW.JS應用程序?我在這裏嘗試了文檔... https://github.com/nwjs/nw.js/wiki/file-dialogs但沒有發現什麼,我找如何讓NW.JS中的文件對話框打開到應用程序內的文件夾
<input id="fileDialog" type="file">
<script>
document.querySelector('#fileDialog')
.addEventListener("change", function() {
var filePath = this.value;
alert(filePath);
});
</script>