尝试使用沙盒文件系统 API 创建文件:
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
window.requestFileSystem(
window.PERSISTENT,
1024 * 1024,
function( fs ) {
fs.root.getFile( 'test.txt', {create: true}, function( fe )
{
alert( "OK" );
}, function( e )
{
alert( e.code );
}
);
}, null
);
我总是QUOTA_EXCEEDED_ERR
在此代码上收到错误代码 10 ( )。
Chrome: 17.0.963.79 m
,以--allow-file-access-from-files
标志开头。
我究竟做错了什么?