angular 报错笔记
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 报错笔记的更多相关文章
- Angular报错
报错: Module 'App' is not available! You either misspelled the module name or forgot to load it. If re ...
- YII报错笔记:<pre>PHP Notice 'yii\base\ErrorException' with message 'Uninitialized string offset: 0' in /my/test/project/iot/vendor/yiisoft/yii2/base/Model.php:778
YII常见报错笔记 报错返回的代码如下: <pre>PHP Notice 'yii\base\ErrorException' with message 'Uninitialized str ...
- 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& ...
- (前端)angular报错日常以及记录日常
目录1 json的key...value问题 遍历json的key...value的时候报错: [tslint] for (... in ...) statements must be filtere ...
- iOS报错笔记
问题一: linker command failed with exit code 1 (use -vto see invocation) 原因:导入了.m的头文件,导致同时有两个一样的.m文件在编译 ...
- iOS项目之报错笔记
问题一: linker command failed with exit code 1 (use -vto see invocation) 原因:导入了.m的头文件,导致同时有两个一样的.m文件在编译 ...
- SpringBoot报错笔记
异常一: 1.访问所有方法路径都返回一个page: 截图: 出错原因:不知道 解决方法:新建项目 异常二: 提交表单信息报错 原因:映射文件和和表单的提交方式不统一 解决方法:统一方式即可: 错误三: ...
- 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' < ...
- Mac下安装Angular报错处理
安装 Angular CLI 命令: sudo npm install -g @angular/cli 打印如下错误:(权限问题) gyp WARN EACCES user "root&qu ...
随机推荐
- 关于在bootstrap的tab栏中渲染echats图表,切换tab时echats不显示问题
在开发过程中遇到这样个问题: 利用bootstrap中的tab栏,每当点击tab栏的导航时,echats仅仅只渲染第一个tab的内容,切换tab时,echats图表不显示. 其html代码为: < ...
- javascript动画函数封装(升级版)
//把 任意对象 的 任意数值属性 改变为 任意的目标值 function animate(obj, json, fn) { clearInterval(obj.timer); obj.timer = ...
- SwipeRefreshLayout的使用,下拉刷新
1. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android ...
- 反射另一个app中的View
FrameLayout fl = (FrameLayout) findViewById(R.id.content); View v = null; try { Context context = cr ...
- Win10 UI入门 导航滑动条 求UWP工作
借鉴了 段博琼 大哥写的导航滑动,自己实现了一个类似安卓 IOS 导航滑动条 支持等比例 分割 tabView 支持动画滑动 效果如下图 WYGrid 你可以想象一个GridView itemsWr ...
- thinkphp5 模板中截取中文字符串
TP5模板页截取中文字符串 {$vo.task_detail|mb_substr=###,0,15,'utf-8'}
- iOSUI显示思想
两级显示机制: 1.cpu: 2.GPU: 和操作系统的多级缓存机制有点类似.
- easyUI combobox的使用
1.需要用到的方法 设置组合框(combobox)值的数组. $('#cc').combobox('setValues', ['001','002']); 设置组合框(combobox)的值. $(' ...
- 启用Maven的代理访问
1. Maven配置文件 找到文件 {M2_HOME}/conf/settings.xml, 并把你的代理服务器信息配置写入.注:{M2_HOME} => D:\software\yiibai. ...
- Manacher(最大回文字串)
很好的讲解 注意两端的字符要不同,同时数组要开大一些 [Manacher]最长回文子串 #include<bits/stdc++.h> #define REP(i, a, b) for(r ...