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. BI中事实表与维度表的定义

    一个典型的例子是,把逻辑业务比作一个立方体,产品维.时间维.地点维分别作为不同的坐标轴,而坐标轴的交点就是一个具体的事实.也就是说事实表是多个维度表的一个交点.而维度表是分析事实的一个窗口. 首先介绍 ...

  2. php配置站点

    第一步:需要打开三个文件 1.C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf 2.C:\wamp\bin\apache\apache2.4.9\conf\ ...

  3. DirectUI界面编程(六)实现右键弹出菜单

    本节向大家介绍一下右键弹出菜单是如何实现的.效果如下,在窗口中点击鼠标右键弹出菜单,点击菜单项能够响应菜单点击事件. 使用Duilib库实现的弹出菜单,实际上也是一个Windows窗口,因此我们需要创 ...

  4. mysql安装出现 conflicts with mysql*的解决办法

    rpm -ivh Percona-Server-client-56-5.6.16-rel64.0.el6.x86_64.rpm --nodeps --force error: Failed depen ...

  5. SecurityManager USE

    import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import java.io. ...

  6. sql调优《二》

    1.数据库设计(是否复合范式,是否合理归档.分区.分表等) 2.硬件基础架构 (设备规格,硬件性能,负载均衡,容灾等) 3.ql语句的写法.索引和统计信息,事务和锁,应用程序访问代码(连接过多.频繁开 ...

  7. JS 限制input框的输入字数,并提示可输入字数

    <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8&quo ...

  8. 装饰器阶段性练习(题目)[转载http://www.cnblogs.com/linhaifeng/p/7278389.html]

    # 一:编写函数,(函数执行的时间是随机的)# 二:编写装饰器,为函数加上统计时间的功能# 三:编写装饰器,为函数加上认证的功能## 四:编写装饰器,为多个函数加上认证的功能(用户的账号密码来源于文件 ...

  9. [剑指offer] 1. 二维数组中的查找 (数组)

    注意是有序数组!! 思路: 1.利用二维数组由上到下,由左到右递增的规律,选取右上角或者左下角的元素a[m][n]与target进行比较, 当target小于元素a[m][n]时,那么target必定 ...

  10. 洛谷 P1414 又是毕业季II (多个数的最大公因数)

    这道题其实不难,但是我想复杂了 我想的是把每个数质因数分解,然后每次就枚举每个质因数 来求最小公倍数. 然后想了想这样复杂度将会非常的大,肯定超时 然后看了题解发现不需要质因数分解,直接存因数的个数就 ...