Bootstrap,Angularjs分页

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>表格</title>

</head>

<body>

<!-- 新 Bootstrap 核心 CSS 文件 -->

<link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.min.css">

<style>

#divMain {

width: 500px;

margin: 0 auto;

margin-top: 100px;

}

nav {

position: relative;

width: 100%;

height: 50px;

}

.pagination {

right: 0px;

position: absolute;

top: -30px;

}

nav li {

cursor: pointer;

}

</style>

<div + page);

};

//设置当前选中页样式

$scope.isActivePage = function (page) {

return $scope.selPage == page;

};

//上一页

$scope.Previous = function () {

$scope.selectPage($scope.selPage - 1);

}

//下一页

$scope.Next = function () {

$scope.selectPage($scope.selPage + 1);

};

//});

})

</script>

</body>

</html>