?? student.js
字號:
function add(){
link('studentAction.do?method=studentAdd');
}
function edit(){
link('studentAction.do?method=studentEdit');
}
function del(){
link('studentAction.do?method=studentDel');
}
function save(){
link('studentAction.do?method=studentFind');
}
function checkInputMinus(inputName, alertContext){
var objInput=getObject(inputName);
if(objInput==null){
alert(alertContext);
return true;
}
if(toFloat(objInput.value)<0){
//alert(objInput.value);
alert(alertContext);
if(objInput.type!='hidden'){
objInput.focus();
}
return true;
}
else{
return false;
}
}
function check_add(){
if(checkEmptys("userName","姓名不能為空!"))return ;
if(checkEmptys("userSchool","畢業(yè)學校不能為空!"))return ;
if(checkInputMinus("userSex","請選擇性別!"))return ;
if(checkEmptys("profession","專業(yè)不能為空!"))return ;
if(checkEmptys("userBirth","出生日期不能為空!"))return ;
if(checkInputMinus("degreeId","請選擇學歷!"))return ;
if(checkEmptys("userPassword","密碼不能為空!"))return ;
postForm("form1","studentAction.do?method=studentFind");
}
function check_edit(){
if(checkEmptys("userName","姓名不能為空!"))return ;
if(checkEmptys("userSchool","畢業(yè)學校不能為空!"))return ;
if(checkInputMinus("userSex","請選擇性別!"))return ;
if(checkEmptys("profession","專業(yè)不能為空!"))return ;
if(checkEmptys("userBirth","出生日期不能為空!"))return ;
if(checkInputMinus("degreeId","請選擇學歷!"))return ;
if(checkEmptys("userPassword","密碼不能為空!"))return ;
postForm("form1","studentAction.do?method=studentFind");
}
function check_dele(){
if(checkUnSelected("selected","請選擇刪除項!"))return ;
postForm("form1","studentAction.do?method=studentFind");
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -