使用c3js的data.onclick事件的时候,在控制台捕获了以下错误:
错误截图Uncaught TypeError: Cannot read property 'getItem' of undefined`
其实这是一个bug,在最新的0.4.11版本已经修复了这个问题
解决方法就是更新到0.4.11或者参考这条pull进行修改:
issue:https://github.com/c3js/c3/issues/1566
pull:https://github.com/c3js/c3/pull/1564/
网友评论