Is there any way to export html table into Excel working in all browsers?

后端 未结 3 1762
时光取名叫无心
时光取名叫无心 2021-01-15 20:17

I used below code for that but its works only in Firefox. It also not allow customize exported file name. It takes a random file name.

 var tableToExcel = (f         


        
3条回答
  •  臣服心动
    2021-01-15 20:54

    The Firefox supports the HTML 5 feature data-uri here data:application

    If you want to make it work across all browsers, better do it in server side and set the response ContentTypeaccordingly.

提交回复
热议问题