摘要:
$scope.roleModel = {}; //循环遍历角色对象 for(var selectRole in $scope.roleModel){ if($scope.roleModel[selectRole] == true){ roles.push({"name":selectRole}); 阅读全文
posted @ 2016-02-24 10:09
白帝落落
阅读(124)
评论(0)
推荐(0)
摘要:
Array.prototype.unique = function() { var n = {},r=[]; //n为hash表,r为临时数组 for(var i = 0; i < this.length; i++) //遍历当前数组 { if (!n[this[i]]) //如果hash表中没有当 阅读全文
posted @ 2016-02-24 10:08
白帝落落
阅读(107)
评论(0)
推荐(0)

浙公网安备 33010602011771号