⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dictionary.js

📁 中应用程序的访问权限对Java Web Console 中应用程序的访问权限 成功登录 Web 控制台后,可能无法自动访问在该控制台中注册的所有应用程序。通常,必须安装应用程序,才能让所有的用户在控制
💻 JS
字号:
	var xmlhttp;
    var elements; 
    alert("ddddd");
    	function init(){
			getGrandpa();
		}
				
		function createXMLHttpRequest(){
			if(window.ActiveXObject){
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			else if(window.XMLHttpRequest){
				xmlhttp = new XMLHttpRequest();
			}
		}

		function getFather(t){
		
			var selected = t.value;
				createXMLHttpRequest();
				xmlhttp.onreadystatechange = processor1;
				xmlhttp.open("GET","<%=path %>/admins/core/dictionary.html?method=cascade1&selected="+selected,true);
				xmlhttp.send(null);
		}
		function processor1(){
			var result;
			var selected = document.all.slt1.value;
			
			if(xmlhttp.readyState == 4){
				if(xmlhttp.status == 200){			
					result = xmlhttp.responseText;
					while(document.all.fathername.childNodes.length>0){
						document.all.fathername.removeChild(document.all.fathername.childNodes[0]);
					}
					while(document.all.father.childNodes.length>0){
						document.all.father.removeChild(document.all.father.childNodes[0]);
					}
					if(0==selected){
						document.all.hiddenname.innerHTML=result.substring(0,result.indexOf('_'));
						document.all.hidden.innerHTML=result.substring(result.indexOf('_')+1,result.length);
					}else{
					
					document.all.fathername.innerHTML=result.substring(0,result.indexOf('_'));
					document.all.father.innerHTML=result.substring(result.indexOf('_')+1,result.length);
					}
					
				}
			}
		}
		function getSon(){
			var selected = document.all.slt2.value;
				createXMLHttpRequest();
				xmlhttp.onreadystatechange = processor2;
				xmlhttp.open("GET","<%=path %>/admins/core/dictionary.html?method=cascade2&selected="+selected,true);
				xmlhttp.send(null);
		}
		function processor2(){
			var result;
			if(xmlhttp.readyState == 4){
				if(xmlhttp.status == 200){
					result = xmlhttp.responseText;
					while(document.all.sonname.childNodes.length>0){
						document.all.sonname.removeChild(document.all.sonname.childNodes[0]);
					}
					while(document.all.son.childNodes.length>0){
						document.all.son.removeChild(document.all.son.childNodes[0]);
					}
					document.all.sonname.innerHTML=result.substring(0,result.indexOf('_'));
					document.all.son.innerHTML=result.substring(result.indexOf('_')+1,result.length);
				}
			}
		}
		function check(){
			var name = document.getElementById("addname").value;
			createXMLHttpRequest();
			xmlhttp.onreadystatechange = processor3;
			xmlhttp.open("GET","<%=path %>/admins/core/dictionary.html?method=validate&name="+name,true);
			xmlhttp.send(null);
		}
		
		function processor3(){
			var responseContext;
			if(xmlhttp.readyState == 4){
				if(xmlhttp.status == 200){
					responseContext = xmlhttp.responseText;
					if(responseContext.indexOf("false")!=-1){	
						document.all.nameDIV.innerHTML="<font color='red'>名称已存在!!!</font>";
						document.all.addname.value="";
					}else if(responseContext.indexOf("null")!=-1){
						document.all.nameDIV.innerHTML="<font color='red'>名称不能为空!!!</font>";
					}else{
						document.all.nameDIV.innerHTML="<font color='red'>名称可用!!!</font>";
					}
				}
			}
		}
		function checkSubmit(){
			var name = document.all.addname.value;
			var value = document.all.addvalue.value;
			if(name==null||name==''){
				alert("请输入名称!!");
				return false;
			}else if(value==null||value==''){
				alert("请输入范围!");
				return false;
			}else{
				return true;
			}
			
		}
		
		function checkSubmitUpload(){
			var name = document.all.file.value;
			if(name==null||name==''){
				alert("请从本地选择一个execl的文件!!");
				return false;
			}
			else{
				return true;
			}
	
		}

⌨️ 快捷键说明

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