利用JS下载任何素材
解决浏览器不能直接下载.jpg/.png/.swf等文件,免去了用PHP设置头部。function download(src) {
var $a = document.createElement('a');
$a.setAttribute("href", src);
$a.setAttribute("download", "");//"download",".torrent"
var evObj = document.createEvent('MouseE ...