Jquery 如何在Android phonegap应用程序中绘制jqplot图表
我正在为Android开发Phonegap应用程序。Jquery 如何在Android phonegap应用程序中绘制jqplot图表,jquery,android,cordova,jqplot,Jquery,Android,Cordova,Jqplot,我正在为Android开发Phonegap应用程序。 我想实现一个简单的jqplot图表 var plot1 = $.jqplot('graphcontentview', [[3,7,9,1,4,6,8,2,5]]); 其中graphcontentview是包含图表的div的id 当我运行这段代码时,它会产生以下错误- Uncaught TypeError: Object function (a,b){return new e.fn.init(a,b,h)} has no method 'j
我想实现一个简单的jqplot图表
var plot1 = $.jqplot('graphcontentview', [[3,7,9,1,4,6,8,2,5]]);
其中graphcontentview是包含图表的div的id
当我运行这段代码时,它会产生以下错误-
Uncaught TypeError: Object function (a,b){return new e.fn.init(a,b,h)} has no method 'jqplot' at file:///android_asset/www/hellophonegap.js:27
其中hellophonegap.js是我的js文件,稍后我将使用此js将代码写入index.html文件
我为jqplot图表添加了以下js代码
<script type="text/javascript" src="jquery.jqplot.min.js"></script>
<script type="text/javascript" src="/plugins/jqplot.canvasTextRenderer.min.js"></script>
<script type="text/javascript" src="/plugins/jqplot.jqplot.canvasAxisLabelRenderer.min.js"></script>
我不明白确切的问题是什么检查jquery.jqplot.min.js文件的路径你说的“where hellophonegap.js是我的js文件,稍后我将使用这个js将代码写入我的index.html文件”是什么意思?我是说我正在将这个js文件导入index.html文件