<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style_box_demo.css">
<script type="text/javascript" src="merge.js"></script>
<script type="text/javascript" charset="utf-8"> <!--frame 位置-->
<!--type: 折线图 柱状图 饼状图-->
<!--ymax y轴最大值-->
<!--xtitles x轴下面的标题-->
<!--dataSource 数据源组-->
<!--{-->
<!-- piePercentValue 数值-->
<!-- color 颜色-->
<!-- text 关联名-->
<!-- project 关联项目名-->
<!-- plots 点集合-->
<!-- isShowPoint 显示点-->
<!--}--> function createchart() { var options = {
"frame" : [,,,],
"type":,
"ymax":,
"isShowPoint":,
"xtitles" :["", "", "", "", "", "", "", "" , "", "", "", ""],
"dataSource" :[
{
"piePercentValue": "",
"color": [, , ],
"text":"1组",
"project":"1组",
"plots":["", "", "", "", "", "", "", "" , "", "", "", ""]
},
{
"piePercentValue": "",
"color": [, , ],
"text":"2组",
"project":"2组",
"plots":["", "", "", "", "", "", "", "" , "", "", "", ""]
},
{
"piePercentValue": "",
"color": [, , ],
"text":"3组",
"project":"3组",
"plots":["", "", "", "", "", "", "", "" , "", "", "", ""]
}
]
}; showChartView.chartutility(testSuccess,testFailed,[options]);
} function testSuccess(msg) {
alert(msg);
}
function testFailed(msg) {
alert('failed: ' + msg);
} function goHome()
{
cordova.exec(testSuccess,testFailed,"ChartUtilityPlugin","remove");
window.location.href = "index.html";
}
</script> </head> <body>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<div class="btn bg_5" onclick="createchart();">生成图表</div><br/>
<div class="btn bg_1" onclick="goHome();">返回</div><br/> </body> </html>

出现这种报错的原因是

                showChartView.chartutility(testSuccess,testFailed,[options]);

数据类型错误,这里去掉括号即可,已经声明的参数等同于["xxxx"]

                showChartView.chartutility(testSuccess,testFailed,options);

WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> -[__NSArrayM objectForKey:]: unrecognized s的更多相关文章

  1. meteor报错之:MongoDB had an unspecified uncaught exception.

    今天测试的时候meteor报了个错 如下: MongoDB had an unspecified uncaught exception. This can be caused by MongoDB b ...

  2. iOS- Terminating app due to uncaught exception 'NSRangeException'

    错误描述: Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM object ...

  3. threadid=1: thread exiting with uncaught.exception ......解决方法

     threadid=1: thread exiting with uncaught exception (group=0x40015560)E/AndroidRuntime(285): FATAL E ...

  4. ERROR SparkUncaughtExceptionHandler: Uncaught exception in thread

    ERROR SparkUncaughtExceptionHandler: Uncaught exception in thread Thread[appclient-registration-retr ...

  5. windows redis:Uncaught exception 'RedisException' with message 'Redis server went away'

    window-exe-redis-2.8.12服务,当你复制好php_igbinary.dll,php_redis.dll时候,你运行redis报错:Fatal error: Uncaught exc ...

  6. threadid=1: thread exiting with uncaught exception (group=0x40db8930)

    异常信息如下: 07-26 17:23:49.521: W/dalvikvm(29229): threadid=1: thread exiting with uncaught exception (g ...

  7. Terminating app due to uncaught exception 'NSUnknownKeyException' this class is not key value coding-compliant for the key

     Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ViewController > se ...

  8. *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ViewController > setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key

    *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ViewController > ...

  9. Kafka启动报错 : ERROR Processor got uncaught exception

    参照我之前的一篇博文Kafka学习之(二)Centos下安装Kafka安装了kafka并启动,状况并不像我之前最初的预期,报错了,并且我在当前Linux环境下安装的Java版本.Kafka版本都是和之 ...

随机推荐

  1. Senparc.Weixin微信开发(3) 自定义菜单与获取用户组

    自定义菜单 代码参考:http://www.cnblogs.com/szw/p/3750517.html 还可以使用他们官网的自定义:https://neuchar.senparc.com/User/ ...

  2. SqlServerHelp

    using System; using System.Collections.Generic; using System.Reflection; using System.Text; using Sy ...

  3. Git强制拉取覆盖本地

    1.多条执行 git fetch --all git reset --hard origin/master git pull 2.单条执行 git fetch --all && git ...

  4. Redis都有哪些数据类型

    string 这是最基本的类型了,就是普通的set和get,做简单的kv缓存 hash 这个是类似map的一种结构,这个一般就是可以将结构化的数据,比如一个对象(前提是这个对象没嵌套其他的对象)给缓存 ...

  5. 新版的K8S中的flannel.yaml文件中要注意的细节

    部署flannel作为k8s中的网络插件,yaml文件都大小同异. 但在要注意以下细节. 以前,只需要前面master判断. 现在也需要有not-ready状态了. tolerations: - ke ...

  6. spring+redis的集成,redis做缓存

    1.前言 Redis是一个开源的使用ANSI C语言编写.支持网络.可基于内存亦可持久化的日志型.Key-Value数据库,并提供多种语言的API.我们都知道,在日常的应用中,数据库瓶颈是最容易出现的 ...

  7. Java LinqCollection 仿Linq的list常用函数

    目前支持find,findAll,sort,select,remove等,java不支持lamda函数,因此用接口代替 public interface Fun<T1,T2> { publ ...

  8. MUI组件四:选择器、滚动条、单选框、区域滚动和轮播组件

    目录(?)[+]   1.picker(选择器) mui框架扩展了pipcker组件,可用于弹出选择器,在各平台上都有统一表现.poppicker和dtpicker是对picker的具体实现.*pop ...

  9. 设置VMware10开机自启动并同时启动虚拟机镜像系统

    首先,进入VMware Workstation的安装目录 C:\Program Files (x86)\VMware\VMware Workstation

  10. Could not locate executable null\bin\winutils.exe in the Hadoop binaries解决方式 spark运行wordcoult

    虽然可以正常运行,但是会出异常,现给出解决方法. 1.问题:   2.  问题解决: 仔细查看报错是缺少winutils.exe程序. Hadoop都是运行在Linux系统下的,在windows下ec ...