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

📄 script.js

📁 数据仓库工具
💻 JS
字号:
/**
This example will change all apperance of CITY named 'London' to 'Amsterdam'. Also will 
change TELEPHONE where CITY is 'London', replacing first three digits with '055'.
**/
retVal = new Array();
	if(CITY == 'London'){ 
		retVal[0]='Amsterdam';
	}else{
		retVal[0]=CITY;
	}
	if (CITY == 'London'){
		if (TELEPHONE != null){
			pos = TELEPHONE.indexOf("/");
			TELEPHONE = TELEPHONE.substring(pos,TELEPHONE.length);
			retVal[1] = "055" + TELEPHONE;
		}else{
			retVal[1]= null;
		}
	}else{
	retVal[1]=TELEPHONE;
	}
retVal;

⌨️ 快捷键说明

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