ngcsv - 故障在Safari和IE浏览器 [英] ngcsv - Trouble in safari and IE Browsers

查看:235
本文介绍了ngcsv - 故障在Safari和IE浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我采用了棱角分明的JS在我的网页加载表。现在我想将数据导出到Excel。对于我发现使用ngcsv的解决方案。它被提及,因为它可以很容易地转换成JSON数组为.csv文件。我想这一点,并得到了成功Firefox和Chrome浏览器。但在Safari和IE浏览器无法正常工作。   我试着在网上给出了下面的小提琴手的例子

I am using Angular js to load table in my page. Now i want to export the data to excel. For that i find a solution of using ngcsv. It is mentioned as it can easily convert json array to .csv file. I tried with that and got succeeded in Firefox and Chrome Browser. But in safari and IE it is not working. I tried the following fiddler example given in internet

`http://jsfiddle.net/asafdav/dR6Nb/` 

它也没有工作在Safari和IE浏览器。是否有变通方法吗?

It is also not working in Safari and IE. Is there any work around for this?

推荐答案

没有,有没有解决方法,因为这样,除非您决定写你自己的图书馆。

No, there is no workaround as such, unless you decide to write your own library.

在NG-CSV的GitHub的页面: https://github.com/asafdav/ng-csv

On the github page of ng-csv : https://github.com/asafdav/ng-csv

这是明确指出,Safari浏览器是不支持的,只有IE浏览器10+的支持。

It is clearly stated that Safari is not supported and only IE 10+ are supported.

这篇关于ngcsv - 故障在Safari和IE浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆