首先引入:
接着复制代码:
$("#download").click(function(){
var content = $(’#out’).val();
var blob = new Blob([content], {type: “text/plain;charset=utf-8”});
saveAs(blob, “content.txt”);
});
首先引入:
接着复制代码:
$("#download").click(function(){
var content = $(’#out’).val();
var blob = new Blob([content], {type: “text/plain;charset=utf-8”});
saveAs(blob, “content.txt”);
});