獲取文件夾下的css文件到download方法中,這個如何引入進來 ,我會拼接到html變量中,下載文件操作!methods:{
download(){
const template = this.$refs.resume.$el.innerHTML;
let html = `<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>X-Find迅聘選才</title>
<style>
</style>
</head>
<body>
<div class="resume_preview_page" style="margin:0 auto;width:1200px">
${template} </div>
</body>
</html>`
writer('test.html', html, 'utf-8')
}
}
添加回答
舉報
0/150
提交
取消