发表于: 2017-01-24 22:45:35
4 1485
今天做的事
最开心把3000条数据删的少了些,载入的时候可以秒开不卡了,心情愉悦
$scope.del=function () {
for ( i=0 ; i<($scope.dataNum-200) ; i++ ){
$http({
method : 'POST',
url : "/student-ajax/students/",
params :{"id":$scope.data[i].id}
})
.success(function (response) {
console.log(response.message);
})
.error(function (response) {
console.log(response.message);
})
}
for ( i=0 ; i<($scope.dataNum-200) ; i++ ){
$http({
method : 'POST',
url : "/student-ajax/students/",
params :{"id":$scope.data[i].id}
})
.success(function (response) {
console.log(response.message);
})
.error(function (response) {
console.log(response.message);
})
}
}
然后任务6到10还差把搜索部分选择全部部分结束就结束了
明天计划
把搜索结束
收获以及困惑
二大给了一种把条件给到一个对象里,然后可以判断选择全部的时候是怎么样的,但是跟我的思路不一样,所以得看下先可以
然后晚上去吃了自助,然后走了回来之后,突然有点,饿了,,
评论