antvis/G6





The issue has been closed
V5 入门-快速上手-CDN方式引入,示例代码无法运行 #5069
jmcdjyu posted onGitHub
问题描述
V5 入门-快速上手-CDN方式实例代码无法运行,报错:Uncaught ReferenceError: G6 is not defined 文档中,完整代码中引用的G6库为: https://gw.alipayobjects.com/os/lib/antv/g6/5.0.0-beta.21/dist/g6.min.js
重现链接
不会用,没有
重现步骤
- 复制 https://g6-next.antv.antgroup.com/manual/getting-started#完整代码 这个URL中的代码
- 保存为本地index.html,去掉 /* 图的画布容器 / 和 / 引入 G6 */ 这两个注释
- 用chrome或edge浏览器打开index.html
预期行为
我期望看到图显示,但是看到了白屏页面,F12进入调试模式,发现报错。
平台
- 操作系统: Windows 10
- 网页浏览器: Google Chrome
- G6 版本: 5.0-alpha
屏幕截图或视频(可选)
补充说明(可选)
No response