Encoding UTF-8 when exporting HTML table to Excel

前端 未结 5 948
感动是毒
感动是毒 2020-12-01 09:39

I am trying to export an HTML table to Excel using javascript. This is the javascript code



        
5条回答
  •  臣服心动
    2020-12-01 10:36

    Use the code below in the var uri:

    var uri = 'data:application/vnd.ms-excel;charset=UTF-8;base64,'
    

    Output

提交回复
热议问题