我的datatable代码是:
(function (){
var table = $('#previousExceptionTable').DataTable({
dom: 'lrtip',
initComplete: function () {
alert("initComplete");//an alert box just to check control location
this.api().columns([1]).every( function () {
var column = this;
...
});
当我使用chrome浏览器时,我会很快(在1-2秒内)得到警告框和结果,但当我使用IE时,几乎需要4-5分钟才能得到结果和警告框。
我在IE上看到此错误
localhost is not responding due to a long-running script
但在等待了4-5分钟后,我得到了结果。
早些时候,我使用CDN for datatable,所以我想下载JS文件,然后使用它来提高速度,但它没有用。我试着重置IE的设置,但不起作用,你们知道如何减少IE的加载时间吗?
发布于 2019-01-09 15:43:44
我在IE (10/11/edge)上遇到过这个问题,但.Datatable()没有。
这对我很有效(添加到HTML中的'head‘元素中)
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=11">
https://stackoverflow.com/questions/54105059
复制相似问题