plus.io.requestFileSystem(plus.io.PUBLIC_DOWNLOADS, function(fs) {
// fs.root是根目录操作对象DirectoryEntry
fs.root.getFile('/static/utils/abc.json', {
create: true
}, function(fileEntry) {
fileEntry.createWriter( function ( writer ) {
writer.onerror = function (e) {
console.error('e', e);
}
writer.onwrite = function ( e ) {
plus.console.log( "Write data success!" );
};
writer.seek( writer.length );
writer.write( "New data!" );
}, function ( e ) {
console.error( e.message );
} );
});
});
2***@qq.com
- 发布:2024-05-10 22:44
- 更新:2024-09-04 18:33
- 阅读:130
2***@qq.com (作者)
解决了
2024-09-05 09:45
1***@qq.com
回复 2***@qq.com: 大佬,问下是怎么解决的啊
2024-09-05 14:42