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的点击事件去掉就不会报错,哪位大神可以帮我解释一下原因吗?
 

最新文章

  1. ASP.NET Core 中文文档 第四章 MVC(4.4)依赖注入和控制器
  2. Secure Digital
  3. [转]EntityFramework状态变化AutoDetectChangesEnabled与SaveChanged参数说明
  4. AtCoder Beginner Contest 050 ABC题
  5. curl命令使用(转)
  6. CSS知识点总结
  7. Openjudge计算概论-DNA排序
  8. bash里,echo对换行符的处理
  9. flex 调用WebService1(基于.net)
  10. html 框架 2017-03-11
  11. Angularjs 动态添加指令并绑定事件
  12. Java下使用Apache POI生成具有三级联动下拉列表的Excel文档
  13. CentOS7 Zabbix3.4安装
  14. C# 图片识别
  15. ORM创建多表以及多表的增删改查
  16. 从服务器角度分析RPG游戏——NPC的AI
  17. char,String,int类型互转
  18. windows servier2008+virtualenv下部署Flask (IIS+wfastcgi)
  19. 序列化 ,hashlib ,configparser ,logging ,collections模块
  20. bug-ajax

热门文章

  1. 笔记--js实现异步
  2. 开发辅助 | 前端开发工程师对 UI设计、交互设计的认知
  3. Core Java(六)
  4. IOS入门之创建视图和控件绑定
  5. Linux apache tomcat
  6. 别让好想法埋没:如何进行APP开发?
  7. day06-1 与用户交互以及格式化输出
  8. 使用短信猫发送短信java代码
  9. 路飞学城Python-Day23(practise)
  10. [读书笔记] R语言实战 (六) 基本图形方法