在jQuery.js文件中,Kendo Grid导出到excel“无法读取未定义的属性’长度”时出错
我正在尝试将kendo网格导出为excel,然后我在控制台中出错。 如果有人知道,请帮助我。谢谢你提前。
angular.js:13920 TypeError: Cannot read property 'length' of undefined at Function.map (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:461:18) at init.toDataURL (http://lm.stage.cargoclix.net/bower_components/kendo-ui/js/kendo.all.min.js:30:19702) at init. (http://lm.stage.cargoclix.net/bower_components/kendo-ui/js/kendo.all.min.js:30:27764) at Object.proxy (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:513:14) at Object. (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:3230:33) at fire (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:3073:30) at Object.fireWith [as resolveWith] (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:3185:7) at Object.deferred.(anonymous function) [as resolve] (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:3275:34) at init. (http://lm.stage.cargoclix.net/bower_components/kendo-ui/js/kendo.all.min.js:30:22489) at Object.proxy (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:513:14)
这是我的Bower.json文件代码:
"dependencies": { "font-awesome": "4.6.3", "angular": "1.5.8", "json-formatter": "0.6.0", "angular-route": "1.5.8", "angular-local-storage": "0.5.2", "angular-cookies": "1.5.8", "angular-sanitize": "1.5.8", "angular-animate": "1.5.8", "bootstrap": "3.3.7", "angular-bootstrap": "2.2.0", "toastr": "2.1.3", "moment": "2.15.1", "angular-translate": "2.11.0", "angular-gridster": "0.13.15", "angular-loading-bar": "0.9.0", "angular-i18n": "1.5.8", "angular-translate-loader-static-files": "2.12.1", "jszip": "^2.4.0", "kendo-ui": "https://schmidt%40cargoclix.com:cargoclix@bower.telerik.com/bower-kendo-ui.git#^2016.3.1007", "json-human": "0.1.1", "angular-base64-upload": "0.1.19", "ngclipboard": "^1.1.1", "angular-hotkeys": "chieffancypants/angular-hotkeys#^1.7.0", "underscore": "1.8.3" }, "resolutions": { "angular": "^1.4.4", "angular-translate": "~2.12.1" }, "devDependencies": { "jasmine-core": "^2.4.1", "jasmine-ajax": "^3.2.0", "angular-mocks": "^1.5.6" }, "overrides": { "angular": { "dependencies": { "jquery": ">=1.9.1 <=2.1.1" } } } }
等待很好的解决方案。谢谢
您使用的是什么jQuery版本? 当我将jQuery更新到2.2.4或更高版本时,我遇到了类似的问题。