赞
踩
原项目前端的vue框架中使用了echarts4.9的包,但现在想使用echarts5的包,考虑到兼容问题,所以需要多个echarts版本共存。即:不改动原echarts4.9的内容,新增一个echarts5的包。
npm install echarts5@npm:echarts@5
安装完之后,在node_modules会发现有2个echarts包,即:一个是名称为echarts的文件夹,一个名称为echarts5的文件夹。
import * as echarts5 from 'echarts5'
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。