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

📄 common.js

📁 linux中vi的一些常见命令
💻 JS
字号:
function initSelected(sObj, sValue) {
	var i;
	for (i=0; i<sObj.length; i++) {
		if (sObj.options[i].value == sValue) {
			sObj.options[i].selected = true;
			return;
		}
	}
}

function resize_image(theimage,size) 
{
	if (theimage.width>theimage.height) {	
		if (theimage.width>size) theimage.width=size;
	} else {
		if (theimage.height>size) theimage.height=size;
	}
}


function print_rr(thearray) {
		var str = '';
		for (i=0;i<thearray.length;i++) {
				str += i + ":" + thearray[i] + "\n";
		}
		alert(str);
}

⌨️ 快捷键说明

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