download动态设置新属性。适用于Chrome和Firefox:
var d = "ha";$(this).attr("href", "data:image/png;base64,abcdefghijklmnop").attr("download", "file-" + d + ".png");
欢迎分享,转载请注明来源:内存溢出
download动态设置新属性。适用于Chrome和Firefox:
var d = "ha";$(this).attr("href", "data:image/png;base64,abcdefghijklmnop").attr("download", "file-" + d + ".png");
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)