Markdown
预览
'; const blob = new Blob(['\ufeff' + fullHtml], { type: 'application/msword' }); const link = document.createElement('a'); link.download = 'document.doc'; link.href = URL.createObjectURL(blob); link.click(); URL.revokeObjectURL(link.href); }); document.getElementById('btnClear').addEventListener('click', () => { mdInput.value = ''; render(); }); render();