-1
ファイルの作成方法と保存方法については、コードバのドキュメントhttps://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file/index.html#read-a-file-をすでに読んでいますが、www /ディレクトリ内のファイルに読み書きする方法はありません。 。Cordova - wwwディレクトリ内のjsonファイルに書き込む
さて、私はajax呼び出しを使ってファイルを読むことができますが、書き込むことはできません。それを行う方法はありますか?
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fs){
console.log(fs);
fs.root.getFile("www/json/instalation.json", {create: false, exclusive: false }, function (fileEntry) {
console.log("fileEntry is file?" + fileEntry.isFile.toString()); }, function(){console.log('error');});
}, function(){});
おかげで