月考增刪改查隔行換色

2021-08-14 15:10:46 字數 3248 閱讀 4740

年齡排序

}id排序

}姓名

id姓名

年齡性別

****

愛好操作}}

}}}}

修改    

刪除新增使用者

修改使用者

mo.controller("mycontroller", function($scope) , , , , ]

$scope.emps = ee; //賦給顯示陣列

$scope.xl = function() )

} else if(ge == "按年齡倒序") )}}

//id大下排序

$scope.xl1 = function() )

} else if(ge == "按id大小倒序") )}}

//按姓名進行模糊搜尋

$scope.cha = function()

//迴圈

for(var i = 0; i < ee.length; i++)

}$scope.emps = n1; //賦給顯示陣列

$scope.xl = function() )

} else if(ge == "按年齡倒序") )}}

//id大下排序

$scope.xl1 = function() )

} else if(ge == "按id大小倒序") )}}

//修改                                        

$scope.xiugai = function($index)

//修改

$scope.xiugai2 = function() $/;

if(ii1 == null || ii1 == "" || !cc.test(ii1))

var nn1 = $scope.name_2;

if(nn1 == null || nn1 == "")

for(var i = 0; i < ee.length; i++)

}if(n3.length > 0)

var aa1 = $scope.age_2;

var cc1 = /^\d$/;

if(aa1 == null || aa1 == "" || !cc1.test(aa1))

var ss1 = $scope.***_2;

if(ss1 == null || ss1 == "" || ss1 == "請選擇")

var tt1 = $scope.tell_2;

var cc2 = /^\d$/;

if(tt1 == null || tt1 == "" || !cc2.test(tt1))

var pp1 = $scope.play_2;

if(pp1 == null || pp1 == "")

var xg =

n1.splice(xia, 1, xg); //刪除替換

$scope.sos2 = false; //div隱藏}}

//新增

$scope.add = function()

$scope.add1 = function() $/;

if(ii == null || ii == "" || !cc.test(ii))

var nn = $scope.name_1;

if(nn == null || nn == "")

for(var i = 0; i < ee.length; i++)

}if(n2.length > 0)

var aa = $scope.age_1;

var cc1 = /^\d$/;

if(aa == null || aa == "" || !cc1.test(aa))

var ss = $scope.***_1;

if(ss == null || ss == "" || ss == "請選擇")

var tt = $scope.tell_1;

var cc2 = /^\d$/;

if(tt == null || tt == "" || !cc2.test(tt))

var pp = $scope.play_1;

if(pp == null || pp == "")

var tj =

//新增給陣列

ee.push(tj);

//賦給顯示陣列 

$scope.emps = ee;

//div隱藏

$scope.sos1 = false;

//賦值為空白

$scope.id_1 = "";

$scope.name_1 = "";

$scope.age_1 = "";

$scope.***_1 = "";

$scope.tell_1 = "";

$scope.play_1 = "";

}//刪除

$scope.dele = function($index)

//修改

$scope.xiugai = function($index)

//修改

$scope.xiugai2 = function() $/;

if(ii1 == null || ii1 == "" || !cc.test(ii1))

var nn1 = $scope.name_2;

if(nn1 == null || nn1 == "")

for(var i = 0; i < ee.length; i++)

}if(n3.length > 0)

var aa1 = $scope.age_2;

var cc1 = /^\d$/;

if(aa1 == null || aa1 == "" || !cc1.test(aa1))

var ss1 = $scope.***_2;

if(ss1 == null || ss1 == "" || ss1 == "請選擇")

var tt1 = $scope.tell_2;

var cc2 = /^\d$/;

if(tt1 == null || tt1 == "" || !cc2.test(tt1))

var pp1 = $scope.play_2;

if(pp1 == null || pp1 == "")

var xg =

ee.splice(xia, 1, xg); //刪除替換

$scope.sos2 = false; //div隱藏}})

純CSS隔行換色

css3隔行變換色 www.jbxue.com title style type text css list1 li nth of type odd 奇數行 list1 li nth of type even 偶數行 list2 li nth child 4n 1 從第一行開始算起 每隔4個 包含第...

mysql增刪改查效果 mysql增刪改查

檢視所有資料庫 mysql show databases 建立乙個庫ghd並指定字符集為utp8 mysql create database ghd charset utf8 檢視mysql支援的字符集 mysql show char set 建立乙個表,並設定id為主鍵 create table ...

mysql增刪改查擴充套件 MySQL增刪改查

1 插入 insert 1 insert into 表名 values 值1 值2 例子 insert into t1 values zengsf 23 fengshao 22 2 insert into 表名 欄位1,values 值1 例子 insert into t1 name values ...