问题:在用taro开发小程序时用到了echarts官方的小程序组件echarts-for-weixin,由于小程序有体积要求,所以用echarts官方提供的在线定制的功能,使用定制的echarts.js文件时一直报错:type of undefined
https://github.com/ecomfe/echarts-for-weixin/issues/458
echart打包下载后需要修改一下,将 function (exports) { ‘use strict’; 改成 function (exports,window,document) { ‘use strict’; 如果是压缩版,则找到) { ‘use strict’;右括号)中的参数增加window,document两个参数