Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.0k views
in Technique[技术] by (71.8m points)

echarts里的配置项很多都是重复的,有什么办法可以将通用的部分抽离出来方便复用吗?

因为项目里的配置项很多都是重复的,诸如x轴、y轴、图例、toolTip、等等,有什么办法可以将它们抽离出来吗?在官网没有找到关于这个的文档。谢谢大家了感激不尽!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

我感觉方法很多呀,你可以自己写一个方法然后传参调用


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...