标签:rip javascrip substr logs bst ref ast func substring
function download(src) { var srcName = src.substring(src.lastIndexOf(‘/‘)+1); var $a = $("<a></a>").attr("href", src).attr("download", srcName); $a[0].click(); }
标签:rip javascrip substr logs bst ref ast func substring
原文地址:http://www.cnblogs.com/jkr666666/p/7016609.html