是否可以在不使用下载功能的情况下读取文件的值?
代替:
storageRef.child('text.txt').getDownloadURL().then(function() {
...
});
Run Code Online (Sandbox Code Playgroud)
就像是:
storageRef.child('text.txt').getValue().then(function(value) {
alert(value)
});
Run Code Online (Sandbox Code Playgroud)