script type="text/javascript" src="jquery-1.5.1.min.js">/script>
script type="text/javascript">
//test
function test(uid)
{
if(confirm("确定该用户操作"+uid+"吗?"))
{
var date = new Date();
var param = {uid:uid};
jQuery.get("test.jsp?para=" + date, param,
function(data){
if(data != null)
{
var result = data.result;
//alert("data==="+data);
if(result == 1)
{
alert("操作失败");
}
if(result == 0)
{
alert("操作失败。");
//document.location.href = document.location;
//window.location.reload();
}
}
});
}
}
/script>
a href="javascript:void(0);" onclick="test(111111111111111111);">submit/a>