kk Blog —— 通用基础


date [-d @int|str] [+%s|"+%F %T"]
netstat -ltunp
sar -n DEV 1

JS获取页面上所有input

https://www.cnblogs.com/byvar/p/3994900.html

1
2
3
4
5
for (var i = 0; i < document.getElementsByTagName("input").length; i++) {
	if (document.getElementsByTagName("input")[i].id.indexOf("tx_ID") > -1) {
		document.getElementById("hid_SetValue").value += document.getElementsByTagName("input")[i].id + "," + document.getElementsByTagName("input")[i].value + "|";
	}
}

获取iFrame的所有

1
2
3
4
5
6
7
8
9
10
11
function GetAllIframeItem() {
	document.getElementById("hid_LogInfo").value = "";
	var a = document.getElementById("Iframe3").contentWindow;
	var all = "";
	var mytds =a.document.getElementsByTagName("td");
	for (var i = 0; i < a.document.getElementsByTagName("td").length; i++) {
		document.getElementById("hid_LogInfo").value += a.document.getElementsByTagName("td")[i].innerText + ",";
	}
	alert(document.getElementById("hid_LogInfo").value);
	return false;
}

language, web

« python xlsx读取oldval, 转xls、csv C2 A0 不可见字符到底是什么?半角非中断空格 »