摘要:
input1:<input type="checkbox" ng-model="value1"> <br><!--设置true的时候显示什么false的时候显示什么-->input2:<input type="checkbox" ng-model="value2" ng-true-value="'Y 阅读全文
摘要:
var json = { 4:'sdf', 5:'sdfsdf'}; var json2 ='{"5":"sdf","4":"sdfsdf"}'console.log(typeof angular.fromJson(json2));//objectconsole.log(typeof angular 阅读全文
摘要:
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 阅读全文
摘要:
//angular.isArray是否是数组console.log(angular.isArray([])); //trueconsole.log(angular.isArray([1,2,1,3])); //true//angular.isDate是否是日期console.log(angular. 阅读全文
摘要:
<!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 阅读全文