2016-09-02 6 views

答えて

1

通常、これには、いわゆるダウンロードURLを使用します。 Firebase documentation on getting a download URL

storageRef.child('images/stars.jpg').getDownloadURL().then(function(url) { 
    // Get the download URL for 'images/stars.jpg' 
    // This can be inserted into an <img> tag 
    var img = document.createElement('img'); 
    img.setAttribute('src', url); 
    document.body.appendChild(img); 
}).catch(function(error) { 
    console.error(error); 
}); 
関連する問題