gpt4 book ai didi

javascript - Ext JS 6 - 尽管包含 ext-all.js 但未找到图表

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:02:21 26 4
gpt4 key购买 nike

尽管我在索引页面中包含了 ext-all.js 文件;当我尝试 this online Guage chart example provided by Sencha 时出现如下错误

http://myapp.com/widget/polar.js?_dc=1436970370848 404 (Not Found)
Uncaught Error: [Ext.create] Unrecognized class name / alias: widget.polar

最佳答案

图表在一个单独的包中:

Sencha Charts are not included in the Ext JS library by default. In order to include the charts package, simply add “charts” (“sencha-charts” if working with Ext JS 5.x) to the requires block in your Sencha Cmd generated application’s {appRoot}/app.json file. Adding a package name to the requires array directs Cmd to make the package available to your application.

https://docs.sencha.com/extjs/5.1/components/introduction_to_charting.html

关于javascript - Ext JS 6 - 尽管包含 ext-all.js 但未找到图表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31433325/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com