解决可能出现的Kendo UI和Wijmo SpreadJS兼容性问题

Working around possible Kendo UI and Wijmo SpreadJS compatibility issue

本文关键字:Wijmo SpreadJS 兼容性 问题 UI Kendo 解决      更新时间:2023-09-26

我想我可能在一起使用Kendo UI和SpreadJS时遇到了兼容性问题。如果我在HTML页面中包含JQuery、Kendo和SpreadJS引用,那么Chrome会在开发控制台中给我错误"Uncaught RangeError:超过了最大调用堆栈大小"。IE也遇到同样的错误(堆栈溢出)。

如果有人对我做错了什么,或者我如何让这些图书馆彼此友好相处有任何想法,我将不胜感激!

干杯,Scottie

页面来源:

<html>
<head>
    <script src="https://code.jquery.com/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script src="http://cdn.wijmo.com/spreadjs/jquery.wijmo.wijspread.all.3.20142.12.js" type="text/javascript"></script>
    <script src="http://cdn.kendostatic.com/2013.1.319/js/kendo.all.min.js" type="text/javascript"></script>
</head>
<body>
</body>
</html>

JSFiddle

我还没有分析原因,但如果您更改包含库的顺序(先是Kendo UI,然后是SpreadJS)