- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试将 spreadjs 库添加到我的 Angular 5 应用程序中。我正在按照此链接中给出的教程进行操作。 https://www.grapecity.com/en/blogs/spread-sheets-and-angular但是教程和我的应用程序之间存在一个区别。我的应用程序正在使用 webpack。
当我尝试运行应用程序时出现以下错误
Uncaught ReferenceError: GC is not defined at Object. (gc.spread.sheets.angular.11.0.4.js:106) at webpack_require (bootstrap 05add16ed08b4def07f8:657) at fn (bootstrap 05add16ed08b4def07f8:85) at Object. (app.module.browser.ts:21) at webpack_require (bootstrap 05add16ed08b4def07f8:657) at fn (bootstrap 05add16ed08b4def07f8:85) at Object. (index.js:4) at webpack_require (bootstrap 05add16ed08b4def07f8:657) at fn (bootstrap 05add16ed08b4def07f8:85) at Object.options.path (html5-entities.js:190) (anonymous) @ gc.spread.sheets.angular.11.0.4.js:106 webpack_require @ bootstrap 05add16ed08b4def07f8:657 fn @ bootstrap 05add16ed08b4def07f8:85 (anonymous) @ app.module.browser.ts:21 webpack_require @ bootstrap 05add16ed08b4def07f8:657 fn @ bootstrap 05add16ed08b4def07f8:85 (anonymous) @ index.js:4 webpack_require @ bootstrap 05add16ed08b4def07f8:657 fn @ bootstrap 05add16ed08b4def07f8:85 options.path @ html5-entities.js:190 webpack_require @ bootstrap 05add16ed08b4def07f8:657 fn @ bootstrap 05add16ed08b4def07f8:85 decorate @ main-client.js?v=m6MAq5LYDxHuj3aQ3FLsDASzSdE0PXrpCFP8K7zsieI:4472 __webpack_require @ bootstrap 05add16ed08b4def07f8:657 module.exports @ bootstrap 05add16ed08b4def07f8:706 (anonymous) @ bootstrap 05add16ed08b4def07f8:706
我尝试将 javascript 链接添加到 webpack.config.vendor.js。我的后端是 .net 核心 webapi。请告诉我下一步该怎么做
最佳答案
编辑
这可能是未在 angular.json
文件中导入一些必需脚本的结果。这是当前 Angular 应用程序缺少的默认 SpreadJS 指令 GrapeCity 网站 ( https://www.grapecity.com/en/blogs/spread-sheets-and-angular ) 的一个步骤。
我在 GrapeCity 的 Angular/SpreadJS 博客 ( https://www.grapecity.com/en/blogs/create-angular-spreadsheets-with-angular-cli ) 上发现了这个缺失的步骤,这在他们的网站上有点隐藏。
您需要的步骤是:
angular.json:
{
(…)
"apps": [
{
(…)
"styles": [
"./lib/gc.spread.sheets.excel2013darkGray.11.0.0.css"
],
"scripts": [
"./lib/gc.spread.sheets.all.11.0.0.min.js"
],
(…)
}
],
(…)
}
将文件路径更改为放置 SpreadJS 文件的位置。请注意,至少在我的应用程序中,我的 angular.json
文件有两个 styles
数组和两个 scripts
数组 - 将这些引用插入到顶部集合(最接近 angular.json
文件顶部的样式和脚本数组)。
关于c# - SpreadJS 在基于 Webpack 的 Angular 应用程序中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49063574/
我正在尝试使用 SpreadJs 设置边框,但它对我不起作用。 我已经从他们的帮助文档中删除了该示例,但它不起作用,边框不显示。 http://help.grapecity.com/spread/Sp
我正在使用“spreadJS”,我发现它像 Excel 一样很棒的组件,但担心我无法为单元格分配类似(整数、字符串、组合框、日期)的类型,有什么办法可以做到这一点吗? p> 最佳答案 似乎spread
我打开一个电子表格,我可以在控制台中看到: _clipBoardOptions: "All" 在 activeSheet 对象中。 但每当我尝试从 Excel 粘贴格式时,它只会传递该值。有什么想法我
当我为 SPreadJs 网格创建新列时,我没有看到任何用于对齐列的属性。例如: var nameColInfo = { name: "Name", displayName: "Name", size
我使用的是 SpreadJS 版本 12 我想要的是在每个 keyDown/keyUp 事件后获取单元格文本/值。 当我尝试运行 cell.text() 或 cell.getValue() 时,我得到
我正在尝试使用 Jsdom 加载 SpreadJS,但出现错误:需要一个完全支持 HTML5 Canvas 的浏览器才能运行 SpreadJS。 哪里是 jsom doc 说它支持 Canvas 。
我正在尝试将 spreadjs 库添加到我的 Angular 5 应用程序中。我正在按照此链接中给出的教程进行操作。 https://www.grapecity.com/en/blogs/spread
我认为同时使用 Kendo UI 和 SpreadJS 可能会遇到兼容性问题。如果我在 HTML 页面中包含 JQuery、Kendo 和 SpreadJS 引用,那么 Chrome 会在开发控制台中
我目前有一个使用 AngularJS/SpreadJS 的解决方案,我们需要使用公式更新标题部分。当我们使用 setValue 更改标题中的单元格值时,一切都显示正常,但是我们需要使用 setForm
我是一名优秀的程序员,十分优秀!