<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
#dahezi{
width: 800px;
height: 900px;
}
#xiaohezi{
width: 250px;
height: 200px;
margin-top: 50px;
border:double;
}
</style>
<script type="text/javascript" src="lib/js/angular/angular.min.js" ></script>
<script>
angular.module("linrenjiang",[]).controller("conl",function($scope,$http){
$scope.selname = "";
//网络请求
$http.get("http://result.eolinker.com/rR1VBtT56a6bb220c10b3d44b65b4787a8aec03c4ec32ce? uri=MonthTest").then(function(d){
$scope.stus = d.data;
});
//全选
$scope.ckall = function(){
console.log($scope.stus);
for(var i = 0;i<$scope.stus.length;i++){
$scope.stus[i].ck = $scope.flag;
}
}
HTML 网络数据请求
最新推荐文章于 2024-03-03 00:23:13 发布