1、错误信息:

Failed to instantiate module app due to:
Error: [$injector:unpr] http://errors.angularjs.org/1.5.8/$injector/unpr?p0=showE...
at http://localhost:6664/hospital/assets/js/angular.min.js?v=1499753083736:6:412
at http://localhost:6664/hospital/assets/js/angular.min.js?v=1499753083736:43:174
at d (http://localhost:6664/hospital/assets/js/angular.min.js?v=1499753083736:40:432)
at e (http://localhost:6664/hospital/assets/js/angular.min.js?v=1499753083736:41:158)
at Object.invoke (http://localhost:6664/hospital/assets/js/angular.min.js?v=1499753083736:41:243)
at d (http://localhost:6664/hospital/assets/js/angular.min.js?v=1499753083736:39:418)
at http://localhost:6664/hospital/assets/js/angular.min.js?v=1499753083736:40:19
at q (http://localhost:6664/hospital/assets/js/angular.min.js?v=1499753083736:7:355)
at g (http://localhost:6664/hospital/assets/js/angular.min.js?v=1499753083736:39:319)
at cb (http://localhost:6664/hospital/assets/js/angular.min.js?v=1499753083736:43:336 2、错误信息
$apply already in progress
HTML代码:
  <input type="checkbox" id="check" ng-checked="checkVal" ng-click="select($event)">
  <input type="checkbox" id="check1" class="checked" ng-click="toTrue($event,'dd')">
JS代码:
var array = [];
$scope.checkVal = true;
$scope.checkVal1 = false; $scope.select = function (event) {
var ele1 = document.getElementById('check1');
ele1.click();
}; $scope.toTrue = function (event,val) {
if(event.target.checked){
array.push(val); }else{
array.push('0');
}
} 点击第一个checkbox就会报上面的错误信息,但是如果我把第二个checkbox的点击事件去掉就不会报错,哪位大神可以帮我解释一下原因吗?
 

angular 报错笔记的更多相关文章

  1. Angular报错

    报错: Module 'App' is not available! You either misspelled the module name or forgot to load it. If re ...

  2. YII报错笔记:<pre>PHP Notice &#039;yii\base\ErrorException&#039; with message &#039;Uninitialized string offset: 0&#039; in /my/test/project/iot/vendor/yiisoft/yii2/base/Model.php:778

    YII常见报错笔记 报错返回的代码如下: <pre>PHP Notice 'yii\base\ErrorException' with message 'Uninitialized str ...

  3. angular报错:angular.min.js:118Error: [ng:areq] http://errors.angularjs.org/1.5.8/ng/areq

    报错代码如下: <div ng-controller="HelloAngular"> <p>{{greeting.text}},angular</p& ...

  4. (前端)angular报错日常以及记录日常

    目录1 json的key...value问题 遍历json的key...value的时候报错: [tslint] for (... in ...) statements must be filtere ...

  5. iOS报错笔记

    问题一: linker command failed with exit code 1 (use -vto see invocation) 原因:导入了.m的头文件,导致同时有两个一样的.m文件在编译 ...

  6. iOS项目之报错笔记

    问题一: linker command failed with exit code 1 (use -vto see invocation) 原因:导入了.m的头文件,导致同时有两个一样的.m文件在编译 ...

  7. SpringBoot报错笔记

    异常一: 1.访问所有方法路径都返回一个page: 截图: 出错原因:不知道 解决方法:新建项目 异常二: 提交表单信息报错 原因:映射文件和和表单的提交方式不统一 解决方法:统一方式即可: 错误三: ...

  8. Angular 报错 Can't bind to 'formGroup' since it isn't a known property of 'form'

    错误描述 当form表单加FormGroup属性时报错 Can't bind to 'formGroup' since it isn't a known property of 'form' < ...

  9. Mac下安装Angular报错处理

    安装 Angular CLI 命令: sudo npm install -g @angular/cli 打印如下错误:(权限问题) gyp WARN EACCES user "root&qu ...

随机推荐

  1. BZOJ 1500 splay终结版...

    GSS系列有一丝丝像- 只不过那个是线段树 这个是splay 翻转 插入 删除啥的就是普通的splay 合在一起了而已 //By SiriusRen #include <cstdio> # ...

  2. 使用Latex写book类型文本的体会

    晚上参考中科院上海交大清华北大等学校的模板,终于重新把博一时候没解决的问题解决了.中科院吴老师的CTeX论坛因为维护压力比较大不得不关了,查不到之前的Latex解决答案.经过一下午和一晚上的摸索,忽然 ...

  3. Android Handler学习笔记

    已经习惯了挖坑不填,继续任性一下,周一到周五继续挖坑,每周六周日负责填坑. 1.从Android UI线程谈起 出于性能考虑,Android 中的UI操作并不是线程安全的,所以Android中规定只能 ...

  4. ddk安装失败后的处理

    7600.16385.1版本的DDK,在xp的本上死活按不上,怎么办呢?自己就把其他机器上安装的DDK目录,拷贝过来. 怎么建编译环境呢? 查看x86 Checked Build Environmen ...

  5. net-speeder 安装

    net-speeder net-speeder 在高延迟不稳定链路上优化单线程下载速度 项目由https://code.google.com/p/net-speeder/ 迁入 A program t ...

  6. ZBrush 4R7中为笔刷设置快捷键

    为了便于雕刻.提高雕刻速度,ZBrush®不仅很人性化地设计了自定义笔刷,用户还可以自行设置笔刷快捷键,步骤如下. ZBrush 4R8下载:http://wm.makeding.com/iclk/? ...

  7. XML教程!

    什么是XML? XML是指可扩展标记语言(eXtensible Markup Language),它是一种标记语言,很类似HTML.它被设计的宗旨是传输数据,而非显示数据.XML标签没有被预定义,需要 ...

  8. PHP SOAP如何传入复杂对象

    Paymentexpress有一个SOAP服务方法Check3dsEnrollment(String username,String password, EnrolmentCheckRequest t ...

  9. SpringBoot+Maven聚合多项目打包成jar

    已我最近自己在玩的一个DEMO为例 taosir为pom.xml,其他子项目均为其modules,且为jar项目 eureka为注册中心.workflow为提供者.entrance为调用方 entra ...

  10. myeclipse导入工程 Some projects cannot be imported because they already exist in the workspace

    问题描述: 1 第一次从外部导入工程或者新建工程,成功: 2 删除该工程,但是没有选择delete project contents on disk 3 再次需要该工程,导入该工程时出现警告:Some ...