摘要:
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~~
阅读(184)
评论(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~~
阅读(2613)
评论(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~~
阅读(3668)
评论(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~~
阅读(794)
评论(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~~
阅读(295)
评论(0)
推荐(0)

浙公网安备 33010602011771号