谢谢分享,这里提出一个问题:源码拷贝出来,用火狐浏览器没有问题,用谷歌浏览器报错了:
Invalid mask image(anonymous function) @ echarts-wordcloud.min.js:1
echarts-wordcloud.min.js:1 SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.(anonymous function) @ echarts-wordcloud.min.js:1
echarts-wordcloud.min.js:1 Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.(…)
谷歌浏览器版本:54.0.2840.71 m