摘要: input1:<input type="checkbox" ng-model="value1"> <br><!--设置true的时候显示什么false的时候显示什么-->input2:<input type="checkbox" ng-model="value2" ng-true-value="'Y 阅读全文
posted @ 2017-04-11 18:34 Edison~~ 阅读(174) 评论(0) 推荐(0) 编辑
摘要: var json = { 4:'sdf', 5:'sdfsdf'}; var json2 ='{"5":"sdf","4":"sdfsdf"}'console.log(typeof angular.fromJson(json2));//objectconsole.log(typeof angular 阅读全文
posted @ 2017-04-11 17:30 Edison~~ 阅读(2598) 评论(0) 推荐(0) 编辑
摘要: angular.module('test',[]).controller('con',function ($scope) { $scope.json1 = { a:12, b:'fjks', c:[1,2,3,4], d:{ 1:'a', 2:'b', 3:'c' } }; $scope.json2 阅读全文
posted @ 2017-04-11 16:47 Edison~~ 阅读(3620) 评论(0) 推荐(0) 编辑
摘要: //angular.isArray是否是数组console.log(angular.isArray([])); //trueconsole.log(angular.isArray([1,2,1,3])); //true//angular.isDate是否是日期console.log(angular. 阅读全文
posted @ 2017-04-11 16:18 Edison~~ 阅读(789) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"ng-app=""><head> <meta charset="UTF-8"> <title>Title</title> <script src="js/angular.min.js"></script></head><body> <scr 阅读全文
posted @ 2017-04-11 14:49 Edison~~ 阅读(287) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en" ng-app="identitytest"><head> <meta charset="UTF-8"> <title>Title</title> <script src="js/angular.min.js"></script></hea 阅读全文
posted @ 2017-04-10 19:06 Edison~~ 阅读(348) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en" ng-app="fortest"><head> <meta charset="UTF-8"> <title>Title</title> <script src="js/angular.min.js"></script></head><bo 阅读全文
posted @ 2017-04-10 18:29 Edison~~ 阅读(1578) 评论(0) 推荐(0) 编辑
摘要: <div style="opacoty:0.5;"> <div style="opacoty:1;"></div> </div> 这么写子级会继承父级的透明度,而且无法更改。我们可以利用background来改变透明度。 <div style="background:rgba(0,0,0,.5);" 阅读全文
posted @ 2017-04-07 16:53 Edison~~ 阅读(760) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en" ng-app="compare"><head> <meta charset="UTF-8"> <title>Title</title> <script src="js/angular.min.js"></script></head><bo 阅读全文
posted @ 2017-04-05 17:56 Edison~~ 阅读(266) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en" ng-app="copyTest"><head> <meta charset="UTF-8"> <title>Title</title> <script src="js/angular.min.js"></script></head><b 阅读全文
posted @ 2017-04-05 16:58 Edison~~ 阅读(140) 评论(0) 推荐(0) 编辑