//index_ctrl.js var index = angular.module('index', ['ngRoute']); index.controller('iList', function($scope, $http, $sce){ $scope.total = 0; parseHtml = function(array){ for(var p=0; p0){ for(var v=0; v<$scope.total; v++){ var tmpCases = [], tmpIndex = 0; $scope.volList[v].date = $scope.volList[v].date.split('-').join('.'); $scope.volList[v].titles = []; pt = $scope.volList[v].date.split('.'); projectTime = new Date(parseInt(pt[0]), parseInt(pt[1])-1, parseInt(pt[2])).toISOString(); for(var i=0; i<$scope.ilist.length; i++){ if($scope.ilist[i].date === projectTime){ $scope.ilist[i].num=++tmpIndex; tmpCases.push($scope.ilist[i]); } } $scope.volList[v].titles = tmpCases; } } document.querySelector('.loading').setAttribute('class', 'loading loaded'); setTimeout(function(){document.querySelector('.loading').style.display="none";}, 400); } }); function GetQueryString(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)return unescape(r[2]); return null; }