최근에 환상적인 플러그인없이 바로 this JSFiddle about how to convert a table to Excel 파일을 발견했습니다. 그것은 정말로 내 필요에 어울리지 만 결함이있어 파일 이름을 바꿀 수는 없습니다. Chrome은 파일 이름을 download
으로 바꿉니다. Firefox는 임의의 이름을 지정합니다.javascript에서 window.open()에서 다운로드 한 파일의 이름을 바꾸는 방법은 무엇입니까?
$("#btnExport").click(function (e) {
window.title = "filename.xls"; // this part doesn't work
window.open('data:application/vnd.ms-excel,' +
$('#dvData').html());
e.preventDefault();
});
다운로드 한 파일의 이름을 어떻게 바꿀 수 있습니까?