kk Blog —— 通用基础


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

js异步、同步ajax

html

1
<input type='button' id='modify_{$table}' onClick="noModify('{$table}', 'modify_{$table}')" value='test'>

js

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function noModify(table, bid)
{
	var idadd = 'is_add_' + table;
	var param = {};
	param[idadd] = '1';
	htmlobj=$.ajax({
		type: 'post',
		url: test.php,
		async: true,
		data: param,
		success: function(html) {
			document.getElementById(bid).disabled = 'disabled';
		}
	});
}