functions.js

来自「07年做得人力资源管理系统」· JavaScript 代码 · 共 36 行

JS
36
字号
function checking(flag,href){
	this.href = href;
  	if(flag==true){
  		window.alert("Sucessed!");
  		window.location.href=this.href;
  	}else{
  		window.alert("The Information is not full!");
  		window.history.go(-1);
  	}
}

function warnDate(sings,flag,href){
	this.href = href;	
	
	switch(sings){
		case 1:	window.alert("Sorry!The Date is wrong!");
  				window.history.go(-1);break;
  		case 2:	window.alert("Sorry!The Grade's length is one!");
  				window.history.go(-1);break;
  		case 3:	window.alert("Sorry!The Information is not full!");
  				window.history.go(-1);break;
  		default:checking(flag,href);  			
	}
}

function del(id){
  	this.id=id;		  			
  	if(window.confirm("Do you want to delete this Record")==true){
  		window.location.href="ProcessDel.jsp?id="+this.id;
  	}
}

function backPage(){
  	window.history.go(-1); 		
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?