jquery - Kendo Grid 导出到 excel 时出错 jQuery.js 文件中的“长度”为“未定义” "cannot read property '

标签 jquery kendo-ui kendo-grid

我正在尝试将剑道网格导出到 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.<anonymous> (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.<anonymous> (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.<anonymous> (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 或更高版本时,问题就解决了。

关于jquery - Kendo Grid 导出到 excel 时出错 jQuery.js 文件中的“长度”为“未定义” "cannot read property ',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40139074/

相关文章:

javascript - Kendo-UI MVC Grid Action Delete 正在路由到 Create 并且 Create 被多次调用

javascript - 剑道网格 : Can we run example with Angular using jsfiddle?

php - 做一个iframe智能化?

javascript - 将 php 数组映射到 javascript

javascript - 在IE10中使用execCommand插入后如何模糊(焦点丢失)图像?

kendo-ui - 使用 Web API 2 Controller 的 Kendo Grid MVC 包装器示例

javascript - 如何在两个日期之间定义剑道网格列过滤器?

如果 css 元素的值等于,Javascript 更改 div 背景

javascript - 如何显示剑道网格​​列菜单的剑道工具提示

javascript - kendo Grid excelExport 的 hideColumn 不起作用