vueエクスポートhtml
export2Excel() {
var a = document.createElement("a");
var url = window.URL.createObjectURL(
new Blob([this.gethtml()], {
type: ''
})
);
a.href = url;
a.download = "file.html";
a.click();
window.URL.revokeObjectURL(url);
}
gethtml() {
const template = this.$refs.test.innerHTML;
let html = `
X-Find
${template}
`;
return html;
},