Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/89.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 如何在Android phonegap应用程序中绘制jqplot图表_Jquery_Android_Cordova_Jqplot - Fatal编程技术网

Jquery 如何在Android phonegap应用程序中绘制jqplot图表

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

我正在为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 '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文件