我希望使用javascript/jquery在我的系统上本地创建一个文本文件.
我正在尝试这个代码,但没有在我的系统上工作.
机器:Ubuntu 10.4 Chrome:14.0.835.126
window.webkitRequestFileSystem(window.TEMPORARY, 1024*1024, function(fs) {
fs.root.getFile('~/Desktop/test.txt', {create: true}, function(fileEntry) {
alert(fileEntry.fullPath); //getting filepath
}, function() {});
}, function() {});
Run Code Online (Sandbox Code Playgroud)