• html导出word


    import { saveAs } from "file-saver";

    import { asBlob } from "html-docx-js-typescript";

    分页:

    			EN-US style="font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:" mce_style="font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:Times New Roman;mso-fareast-font-family:宋体;mso-font-kerning:1.0pt;mso-ansi-language EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA"><br clear=all style="page-break-before:always" mce_style="page-break-before:'always'"/>
    

     

    1. downloadWordWithHtmlString(html, name) {
    2. let htmlString = `
    3. Document