1
我要让这样如何创建一个链接“图片另存为”下载的图片在Rails
http://idwallpaper.com/download.php?image_id=1517
的链接下载我从其他教程尝试这样
<script>
function SaveFile(fname){
img.document.execCommand('saveas', null ,fname)
}
</script>
<iframe id="img" src="myimage.jpg" width="(image width + 20)px" height="(image height + 25)px" scrolling="no" frameborder="0px"></iframe>
<button onclick="SaveFile('myimage.jpg');">save as</button>
无法在Firefox的工作,虽然.....