使用Jplot画图,出现Uncaught TypeError: Object # has no method 'resetDataBounds'

使用Jplot画图,出现

Uncaught TypeError: Object #<S> has no method 'resetDataBounds'

 

错误原因:jquery的js文件没有导入成功或者重复导入

 

查看代码发现代码中使用了$.jqplot.LinearAxisRenderer,但是在head里没有引入js


使用Jplot画图,出现Uncaught TypeError: Object #<S> has no method 'resetDataBounds'
 

解决方法:在head中引入这个js